Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to persist a toolbar
Message
From
27/10/2002 16:17:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/10/2002 15:44:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00715677
Message ID:
00715902
Views:
16
>>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 ...

The thing that needs to be fixed is docs on Clear All - first, there's no mention of projects and related objects (_vfp.projects collection) and when do they get released. Second, the fact that _screen.property will survive Clear All along with its content, but not if it's an object reference, in which case it becomes .null. - that one also needs being written.

There are good reasons for not touching Clear All in the functional sense - there are thousands of apps out there that rely on it as it is. I could only wish for it to be stronger, i.e. to kill the stuck objects as well (tablerevert() all tables with uncommitted changes, null all the object references in properties and do a general garbage collection).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform