WinXToolbar_AddControl (hToolbar, hControl, w)
Adds a control to a toolbar control
Parameter | Description |
---|---|
hToolbar | The toolbar to add the control to |
hControl | The handle of the control to add to the toolbar |
w | The number of pixels the control will use in the toolbar |
$$TRUE on success or $$FALSE on fail
The toolbar displays buttons in the order they are added.
Do not add the control to the auto sizer before or after adding it to a toolbar. The control will automatically be resized to the height of the toolbar and the width specified.
'create a button and add it to a toolbar hButton = WinXAddButton (#hMain, "A button", 0, $$ID_BUTTON) WinXToolbar_AddControl (hToolbar, hButton, 80) |
WinXNewToolbar
WinXNewToolbarUsingIls
WinXToolbar_AddButton
WinXToolbar_AddToggleButton
WinXToolbar_AddSeperator