Purpose |
To create an multi-line edit box and display a character variable (i.e. a string). |
||||||||||||||||||||
Syntax |
winio@('%N.Mre[options]', buffer) |
||||||||||||||||||||
Modifiers |
Grave accent (`) - makes the control read-only (scroll bars are disabled). Caret (^) - the call-back is called when a change is made. Question mark (?) - a help string is supplied. Tilde (~) - adds a variable that controls the grey (enable/disable) state. |
||||||||||||||||||||
Description |
This control is similar to %rs (Edit String) but is multi-line. It has a buffer limit of 32K characters. Buffers larger than 32K may be used but will not automatically be updated when changes are made and require an explicit call to GetEditText@ (see below) in order to update the buffer.. N represents the width of the box in average characters. M represents the depth which should not be less than 2. buffer is a character string for the text (maximum of 32*1024 characters). If buffer has zero length (e.g. winio@("%30.20re","")) then the control uses its own buffer. The content of this buffer can be retrieved by calling GetEditText@ (see below) %re uses the standard Microsoft edit control which responds directly to the accelerator keys Ctrl+C, Ctrl+V, Ctrl+X and Ctrl+Z (for a single undo). It also has its own standard pop-up menu. Standard callbacks "EDIT_FILE_OPEN", "EDIT_FILE_SAVE", "EDIT_FILE_SAVE_AS" and "EDIT_UNDO" have been added analogous to the existing standard callbacks for %eb (Edit Box). These are in addition to the existing "CUT", "COPY" and "PASTE". The following options are available:
The following functions may be used with this enhanced control. These functions take an INTEGER(7) value HWND, typically obtained via %lc (Handle of Last Control). If HWND is zero (0_7) then the control that has the current focus is used. INTEGER FUNCTION GetEditText@(HWND, BUFFER, SIZE) INTEGER FUNCTION OpenEditFile@(HWND, FILENAME) INTEGER FUNCTION EditFileSave@(HWND) INTEGER FUNCTION EditFileSaveAs@(HWND) INTEGER FUNCTION EditFileClosePrompt@(HWND, CAPTION, MESSAGE) INTEGER FUNCTION EditFileModified@(HWND) |
||||||||||||||||||||
Notes |
The %rs (Edit String) PASSWORD option is not available with %re. %re can take a pivot (%pv (Pivot)). %co can be used with %re (Multiline Edit Box). |
||||||||||||||||||||
See also |