Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menus: The proper way to call and release from forms.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00031072
Message ID:
00031105
Views:
41
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform