SetTBbuttonText | ||||||
Syntax: | ||||||
SetTBbuttonText( #ButtonID, Text$ ) | ||||||
Parameters: | ||||||
| ||||||
Description: | ||||||
With this command you can add and change the Text for a Button. By default, the Text is added under the Image of the Button. If you specified #TBpro_LISTVIEW for the command CreateTB(), the Text is displayed on the right side of the Button. | ||||||
Example: | ||||||
; Add 3 Buttons... AddTBbutton(500, #TBpro_CUT,#TBpro_BUTTON) AddTBbutton(501, #TBpro_COPY,#TBpro_BUTTON) AddTBbutton(502,#TBpro_PASTE,#TBpro_BUTTON) ; ...and set the Text SetTBbuttonText(500,"Cut") SetTBbuttonText(501,"Copy") SetTBbuttonText(502,"Paste") | ||||||
Remarks: | ||||||
Attention: This command resets the ButtonWidth for all Buttons to its original state !! (you can change the width with SetTBbuttonWidth() ) Use SetTBbuttonWidth() only after adding all Text to your Buttons and not in the same loop with SetTBbuttonText() . Dont use SetTBbuttonText() with SetTBbuttonWidth() in the same loop !! | ||||||
|