Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5 - Toolbars & Toolbar Icon Problems
Message
From
09/11/1998 13:26:31
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00155593
Message ID:
00155830
Views:
34
Hi Michel.
When I use a tool bar, I create it as required in the main app using a property of main app to store the reference as this.oformbar=CreateObject(mytoolbar). I can then refer to buttons on the formbar from anywhere as MainApp.ofrombar.abutton.click for example. When I no longer need the formbar I set it to NULL (this.oformbar=.NULL.) and that gets rid of it. You might want to try something similar. HTH

Glad you found the problem with your BMP's

>Hi All,
>
>VFP 5.0a SP3 - Playing around with toolbars and icons.
>
>Toolbar Problem
>---------------
>If I create a Toolbar class, and then create a form based on that
>class ..... everything works. I can hide the toolbar, show it ....
>but : how do I clear it from memory completely ? Releasing the
>object memory variable attached to it does not seem to do the trick as
>if I try to MODIFY FORM I get "File is in use". CLEAR ALL, CLOSE
>ALL, RELEASE ALL, none of those work, I still get the "File in use
>error" when trying to MODIFY FORM my toolbar form. The only
>solution I have found so far is shutdown VFP and restart it.
>
>Normal forms have a RELEASE EVENT but Toolbars do not have anything
>equivalent, so I am stuck for the moment.
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform