General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only