Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 02 APR 2009 03:52:04PM Don Muskopf wrote:

Is there any way to know what MENU item or ContextMenu item a user has "Selected", as opposed to what item a user has Clicked on? In other words, is there something like a GotFocus event for a Menu item?


At 02 APR 2009 06:45PM Colin Rule wrote:

There is a nice workaround.

Add a control STATUS to your form, and make it hidden if you want to.

@@WINDOW-]STATUSLINE=@WINDOW: ".STATUS"

In the menu structure put in the Help text, such as some code or perhaps the entity Id.

This then displays in the Status line, which you can pick up with a Changed event if you want to do something clever with it.

I used to use this to display the menu option 'status help' in the status bar, by looking up the text associated with the code, rather than storing it in the menu as at the time the menu had a size limit. It also means you can control the words within the help descriptions without needing to hard code it in the form menu.

Colin


At 03 APR 2009 09:57AM Don Muskopf wrote:

Colin,

Placing codes in the menu structure's Help text and trapping them with the Changed event is a great idea. I always find it interesting how simple smart things often make big differences. :)

Thanks,

Don

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/e6fc2e3de4a966fa8525758c006d2314.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1