PushButton

PushButtonSetCaption

Set the caption of the button

Syntax

Signature
xBool           PushButtonSetCaption( PushButton *pushButton, const char *caption );

Arguments

pushButton the push button.

caption the UTF-8 text to copy, or NULL for an empty string. & marks the following character as the accelerator.

Return value

T on success, or F if the object is NULL.

Description

The displayed caption determines the button's width. After changing it, call `PushButtonDisplay()` to draw the button using the new width.

See also