Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GotFocus like event for bars in a sysmenu popup?
Message
De
22/02/2002 05:05:59
 
 
À
22/02/2002 03:42:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00623560
Message ID:
00623601
Vues:
9
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.
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform