Menu "Selected" item (OpenInsight 32-Bit)
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