Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My toolbar doesn't work
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00229335
Message ID:
00229375
Views:
13
>I created a toolbar class. I then want to place this toolbar on an existing form. I can do that but it doesn't stay. When I run the form it's not there. When I open the form the next time, the toolbar is gone. What do I need to do?

Here's a post to someone else, the general idea is something like this. Not quite sure what your problem is, but you need something like this in the top-level Activate...do you have code similar to this?
if type('this.toptoolbar') != 'O'
   set classlib to toolclass
   this.toptoolbar = createobject('toptoolbar')
   release classlib toolclass
 endif

In toolbar init:

this.show
this.dock(0)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform