Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to persist a toolbar
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00715677
Message ID:
00715800
Views:
18
>>Hi Dragan,
>>
>>Try this
* Function RestoreToolbar()
>>_screen.AddProperty("oTb", Newobject("mytoolbar", "test"))
>>_screen.oTb.Show()
>>RETURN
>>
>>* Toolbar Destroy()
>>KEYBOARD "RestoreToolbar(){ENTER}" PLAIN CLEAR
>>
>
>Take aslo look at Developer-defined Btn(s) on Standard VFP toolbar Thread #611029.

Ah yes, I didn't think of KEYBOARD, "the kludge of last resort". I suppose one would also want to add a way to deliberately close this toolbar now, e.g. with a custom property and an extra Close button. Otherwise, this toolbar might be too persistent!
Montage

"Free at last..."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform