Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to persist a toolbar
Message
From
27/10/2002 15:44:33
 
 
To
27/10/2002 15:02:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00715677
Message ID:
00715899
Views:
16
>>>>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!
>
>Well I thought of something like that as well, but I thought it wouldn't work if the app user runs issues a "clear typeahead" or its own "keyboard ... clear". So far this solution works, and I'm just happy to drop the other more complicated and potentially less stable ways of persisting this toolbar, like creating a dummy object and doing all the stuff I need from its ProjectHook object - open project survives the Clear All, but only if it's visible.

Sounds like there could be a wish list item in here. Something along the lines of a less powerful CLEAR ALL or a CLEAR ALL EXCEPT or ...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform