General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only