Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Browse : readOnly

Integrated Application Platform › Forums › General › Browse : readOnly

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago by ajith.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 10, 2015 at 2:40 pm #1170
    ajith
    Participant

    Hi,

    Even when I specify alwaysReadOnly:true for a BrowseControl, the context menu is available by right clicking the header button or by pressing the context menu button of the keyboard. How can I change this behavior?

    Thanks,
    ajith

    April 10, 2015 at 4:03 pm #1172
    amckinlay
    Keymaster

    It is not that hard to figure this kind of thing out yourself. (I have to do the same.)

    I looked at BrowseControl and I see List_HeaderContextMenu. If I comment this out, then there is no context menu on the header.

    April 12, 2015 at 11:09 pm #1175
    ajith
    Participant

    Hi,

    Following a suggestion by Andrew by email,instead of commenting out the List_HeaderContextMenu of BrowseControl, I tried changing it to:

    	List_HeaderContextMenu(x, y)
    		{
    		if .readOnly
    			return 0
    		else
    		return ContextMenu(.menu.Copy().Add("", "Reset Columns",
    			at: .menu.Size())).ShowCall(this, x, y)
    		}

    Apparently, this is working as expected with all context menus working when the Browse isnt protected and hidden when it is readOnly.

    Thanks,
    ajith

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language