Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menus: The proper way to call and release from forms.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00031072
Message ID:
00031107
Vues:
44
>>>Does anyone have any thoughts on the proper way to call and release a menu item from a form? Currently, I'm doing:
>>>
>>>push _msysmenu
>>>do menus\mymenu.mpr
>>>
>>>on the init of the form and:
>>>
>>>pop _msysmenu
>>>
>>>on the destroy of the form. Is there anything wrong with this? Also, I was playing with the SKIP clause for the menu item in the menu designer. What could I place there to disable (grey out) the menu item when the form is open, but no longer has focus? I tried using:
>>>"_screen.activeform.name<>'myformname'"
>>>
>>>but, this gives an error on form init because there is no current activeform as of yet. How would this be resolved?
>>>I think I posted something similar to this earlier, but I'm not positive so if I am, just kick me.
>>
>>Naah... 2 messages on one subject doesn't deserve a kick. It just shows you're REALLY interested in getting an answer.
>>
>>About your 2nd question - the SKIP clause: Add an
>>
>>IF type('_screen.activeform') = "O"
>> if _screen.activeform.name<>'myformname'
>> ** SKIP code
>> endif
>>ENDIF
>>
>>Barbara
>
>Don't you need an ISNULL test also here? :)
>
>Vlad

Vlad, I thought not when I wrote the message, then I read Michel's message about the form name object not being released, so I guess you're right.

Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform