CreateTB | |||||||||||||||
Syntax: | |||||||||||||||
hTB = CreateTB( #Toolbar , hWnd , X-Size , Y-Size [, Flags ] ) | |||||||||||||||
Parameters: | |||||||||||||||
| |||||||||||||||
Return Values: | |||||||||||||||
| |||||||||||||||
Description: | |||||||||||||||
This Command creates a Toolbar and assigns the TB to the Window with the Handle hWnd. You give this command the SIZE of the Button-Images you assign to the Toolbar with the command SetTBimage() later. OPTIONALLY you can specify some flags for the Toolbar Style. Default is a FlatStyle Toolbar (new look). | |||||||||||||||
Example: | |||||||||||||||
hWnd = OpenWindow(... hTB = CreateTB(1,WindowID(),24,24) hWnd = OpenWindow(... hTB = CreateTB(1,hWnd,40,20,#TBpro_BORDER|#TBpro_LISTVIEW) | |||||||||||||||
Remarks: | |||||||||||||||
If you dont need a picture (you want only TextButtons), set X-SIZE & Y-SIZE to 0 (NULL). Want to use System-Icons ( AddTBsysIcons() ) ?? For SMALL Icons: Set X- & Y-Size to 16 x 16 For BIG Icons: Set X- & Y-Size to 24 x 24 | |||||||||||||||
|