>>>Hi Dragan,
>>>
>>>Try this
>>>_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.