Thanks Bob.
Just the ticket.
Michel.
================== Your original message follows =====================
>>Hi all,
>>
>>Visual FoxPro 5.
>>
>>Is there a way to programmatically remove the VFP toolbars when
>>running a program in development mode ?
>>
>>Although my forms have a SET SYSMENU OFF, if I run them from the
>>Command Window I have to first remove the toolbars by right-clicking
>>on the Toolbars area and deselecting all the VFP toolbars.
>>
>>Is there a way to accomplish this in code, as well as restoring
>>them in the Release Event of my forms ?
>>
>>Thanks.
>>Michel.
>
>I believe you just manipulate them like windows...
>
>Hide Window Standard
>activate window standard
>
>You can set up a logical for each toolbar to see if it exists. If it does hide it. Then, in your shutdown, you can check your logicals and activate the toolbars.
>
>if WVISIBLE('Standard')
> lToolStandard = .t.
> hide window standard
>endif
>
>
>Then in clean up...
>
>if lToolStandard
> activate window standard
>endif
>
>BOb
Previous
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