wxText: wxWindow

wxText::wxText

A text item is an area of editable text, with an optional label displayed in front of it.

voidwxTextwxPanel *parent, wxFunction func, char *label,
char *value = "", int x = -1, int y = -1, int width = -1, int height = -1

Constructor, creating and showing a text item with the given string value. If width or height are omitted (or are less than zero), an appropriate size will be used for the item. func may be NULL; otherwise it is used as the callback for the list box. Note that the cast (wxFunction) must be used when passing your callback function name, or the compiler may complain that the function does not match the constructor declaration.

wxText::wxText

voidwxText

Destructor, destroying the text item.

wxText::GetValue

char *GetValue

Gets a pointer to the current value – this is allocated using new, so should be deleted by the calling program.

wxText::SetValue

voidSetValuechar * value

Sets the text. value must be deallocated by the calling program.