SetTBparent | ||||||
Syntax: | ||||||
SetTBparent( [#Toolbar], hWnd ) | ||||||
Parameters: | ||||||
| ||||||
Description: | ||||||
Set a new parent Window for a Toolbar. The Toolbar is moved into this new (child-) Window. The 1st parameter is optional. If you dont specify the #Toolbar, the current TB is used for the command. | ||||||
Example: | ||||||
; Create a ContainerGadget and use it ; as the parent for the Toolbar TBframe = ContainerGadget(2, 50, 60, TBwidth(1), TBheight(1)) CloseGadgetList() SetTBparent(1, TBframe) | ||||||
Remarks: | ||||||
Attention: The Toolbar has some update (redraw) problems in some PureBasic- Gadgets and in a simple static window without a drawing procedure. I tested it in a ContainerGadget with PureBasic 3.93 and it worked fine. It didnt work in a Frame3DGadget. The work of this command in PB- Gadgets depends on the changes the developer of PB makes to his Gadgets in every new Version of PureBasic. Anyway, its also useful if you want to make a "dockable" Toolbar. Just create a small Toolwindow (with the size of the Toolbar) and place the TB in this new Window when the User is asking for it. | ||||||
|