Members as for wxText, but allowing multiple lines of text.
The style parameter can be a bit list of the following:
wxHSCROLL | A horizontal scrollbar will be displayed. If wxHSCROLL is omitted, only a vertical scrollbar is displayed, and lines will be wrapped. This parameter is ignored under XView. |
wxTE_READONLY | The text is read-only (not XView). |
wxFIXED_LENGTH | Allows the values of a column of items to be left-aligned. Create an item with this style, and pad out your labels with spaces to the same length. The item labels will initially created with a string of identical characters, positioning all the values at the same x-position. Then the real label is restored. |
wxMultiText::GetLineLength
wxMultiText::GetLineText
wxMultiText::GetNumberOfLines
wxMultiText::GetValue
wxMultiText::PositionToXY
wxMultiText::ShowPosition
wxMultiText::XYToPosition
int GetLineLength(long lineNo)
Returns the number of characters in the given line. Windows and Motif only.
int GetLineText(long lineNo, char *buf)
Copies the text at the given line into buf, returning the number of characters copied. Windows and Motif only.
long GetNumberOfLines(void)
Returns the number of lines. Windows and Motif only.
char * GetValue(void)
void GetValue(char *buffer, intbufferSize)
The first form gets a temporary pointer to the current value; copy this for long-term use. The second form copies the value into a buffer, for situations where a lot of text is returned (more than the capacity of the small buffer used for the first form - about 1000 characters).
void PositionToXY(long pos, long x, long y)
Converts index position to character and line position. Windows and Motif only.
void ShowPosition(long pos)
Scrolls the text so that pos is visible. Windows and Motif only.
long XYToPosition(long x, long y)
Converts character and line position to index position. Windows and Motif only.