bool wb_set_text (int wbobject, mixed text [, int item [, int subitem]])
Sets the text and/or the tooltip of a WinBinder object. wb_set_text can also rename or create items in certain controls. The actual action depends on the object class.
To create a tooltip (small hint window), text must be an array with two elements. The first one is the new caption (or NULL if changing is not required) and the second one is the new tooltip (or NULL if changing is not required). Most classes support tooltips. See the table below to check which classes do support them.
For multi-segment status bars, parameter item in wb_set_text() will set the text of the specified segment (0 is default). For single-segment status bars, item is ignored.
Returns
TRUE on success or FALSE if an error occurs.
See the following table.
| Class |
Type |
Action |
Tooltips |
|---|---|---|---|
|
Array |
Set tooltip. |
Yes |
|
|
String or array |
Sets the text of the control. |
Yes |
|
|
Array |
Creates items, one per array element. |
Yes |
|
|
String or array |
Sets the text of the control. |
Yes |
|
|
String |
Sets the text of the control. |
No |
|
|
Array |
Set tooltip. |
Yes |
|
|
Array |
Set tooltip. |
Yes |
|
|
Array |
Set tooltip. |
Yes |
|
|
Array |
Set tooltip. |
Yes |
|
|
String |
Sets the text of the control. |
No |
|
|
Array |
Creates items, one per array element. |
Yes |
|
|
Array |
Creates column titles, one per array element, or changes cell contents. |
No |
|
|
String |
Sets the text of the menu item specified by the item identifier. |
No |
|
|
String or array |
Sets the text of the control. |
Yes |
|
|
String or array |
Sets the text of the control. |
Yes |
|
|
String or array |
Sets the text of the control. |
Yes |
|
|
Array |
Set tooltip. |
Yes |
|
|
Array |
Set tooltip. |
Yes |
|
|
Array |
Set tooltip. |
Yes |
|
|
String or array |
Sets the text of the status bar or its segments. |
Yes |
|
|
Array |
Creates or renames tab pages. |
Yes |
|
|
Array |
Creates or renames treeview nodes. |
Yes |
For all classes of windows and dialog boxes, wb_set_text() sets the window title and/or the window tooltip. All classes support tooltips.
|
|
wb_get_text
Control functions
Window functions