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:
00229530
Views:
19
>>
>>if type('this.toptoolbar') != 'O'
>>   set classlib to toolclass
>>   this.toptoolbar = createobject('toptoolbar')
>>   release classlib toolclass
>> endif
>>
>
>I have the code you suggested in the toolbar init but I don't understand what I should put in the form activate. What is the first line doing?
> if type('this.toptoolbar') != 'O'

That's only in case the form is activated more than once, you don't want to run that code again if the toolbar exists. You want it to run the first time when the form opens, usually. Your toolbars have ShowWindow 'In top-level,' don't they? I assumed you had this, but maybe not...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform