Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbars and Top Level Forms
Message
From
06/08/2000 06:13:39
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00401526
Message ID:
00401636
Views:
18
John
Of course, this code works in my application.
Be sure:
Toolbar class have SHOWWINDOW property set to 1 (In Top-Level form) -(I think your mistake here)
Createobject() placed in Activate top-level form event.

Denis

>Dennis did you try your code? That's what I had but I get the toolbar 'behind' the top level form. When you click the toolbar it minimizes the form. Also _Screen.ActiveForm in code in the toolbar returns an error trying to access the form. Thanks
>
>>>Will toolbars not work with top level forms? If not, why? Or am I doing something wrong? Thanks
>>
>>Hi.
>>Toolbar is successfully works with toplevel form.
>>Create toolbar class 'clsToolbar'
>>Create custom form
>>add to form custom oToolbar property
>>In form Activate event write code
>>
>>IF type('THIS.oToolbar')!='O' OR ISNULL(THIS.oToolbar)
>> THIS.oToolbar = CREATEOBJECT('clsToolbar')
>> THIS.oToolbar.Visible = .t.
>>ENDIF
>>
>>Denis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform