wxText::wxText

void wxText(void)

Constructor, for deriving classes.

void wxText(wxPanel *parent, wxFunction func, char *label, char *value = "", int x = -1, int y = -1, int width = -1, int height = -1, int style = 0, char *name = "text")

Constructor, creating and showing a text item with the given string value.

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.

If label is non-NULL, it will be used to label the text item.

The parameters x and y are used to specify an absolute position, or a position after the previous panel item if omitted or default.

If width or height are omitted (or are less than zero), an appropriate size will be used for the item.

The name parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual text items.