Hi Gregory,
Thanks for your help! Your suggestion applies to a shortcut menu and is dependent on the user actively selecting a menu option vs. just highlighting it.
What I'm looking for is a solution for the system menu (File, Edit ...) found at the top of an application's screen vs. a popup shortcut menu. I'm also looking for a solution where a 'currently highlighted menu (popup) bar' event gets triggered as a user changes their currently highlighted menu option using the keyboard or mouse.
Any other ideas?
Thanks!
Malcolm
>Malcolm,
>
>maybe this can help a bit
>
>
>procedure do_it()
>
> p = sys(2015)
> define popup (p) shortcut
> for i = 1 to 10
> define bar cntbar(p)+1 of (p) prompt str(i)
> on bar cntbar(p) of (p) wait window nowait prmbar(p, bar())
> endfor
>
> activate popup (p)
> release popup (p)
>
>endproc
>
>
>>Hi,
>>
>>When a user is navigating an application's menu, is there a way for our application to trap what menu (popup) bar they have highlighted so we can dynamically display information about the menu (popup) bar in our application specific 'status bar' area?
>>
>>I was hoping there might be some trick that would give us a Got/LostFocus type of functionality. However, after reading the 'define bar' documentation, it doesn't appear that there's anyway to determine the currently selected menu option.
>>
>>It also appears that the value of the 'message' attribute is stored as a static value - there doesn't appear to be a way to specify a message expression that will get dynamically executed as a popup bar is highlighted.
>>
>>Another reason we are trying to determine the active menubar is so that we can trap the F1 key and provide our own application specific 'help' for the currently highlighted menu (popup) bar.