Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ToolBar inside the form
Message
From
15/05/1998 14:51:42
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00099732
Message ID:
00099827
Views:
23
>>>Did you figure out why topform property is important? It's to provide stable >>way to make references to toolbar controls from top/child forms.
>
>Hi Ed.
>
>At the expense of potentially getting flamed here... Please allow me to clarify this issue...
>
>
>There is no property called topform. As far as the ShowWindow() Property goes, it's importance is not in the making of stable references. All you need is an object reference to that. The reason why the Top Level (SDI) Form is important is because SDI forms and _Screen are the only containers that can contain a ToolBar. So, if you want your form to host a toolbar - or more accurately, have the ability for a toolbar to be docked in its boundaries - the toolbar must both have its ShowWindow Property to to In Top Level Form - and - the host form must be a Top-Level Form.

So good man as you cannot get flamed. However, it's a good idea to check the initial question. Valentin just asked me why it's a good idea to link main toolbar with topform custom property, i.e. initiate it as
*** top form Activate event
this.tbmain=createobject("tbmain")
And I explained it to him if you will reread subsequent postings. I highly appreciate that you check quality of my replies but I would ask you to check yourself with the same ardor.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform