Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to persist a toolbar
Message
De
27/10/2002 15:44:33
 
 
À
27/10/2002 15:02:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00715677
Message ID:
00715899
Vues:
19
>>>>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 ...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform