Purpose |
To insert an edit box. |
Syntax |
winio@('%N.Meb[options]',buffer, buff_size) |
Modifiers |
Caret (^) - the call-back function is called when a key is pressed or the mouse is moved. Question mark (?) - a help string is supplied. Grave accent (`) - the program supplies edit information. The array name edit_info is placed in the argument list after any grey control variable and before any call-back function. This is an EDIT_INFO block which can be used to manipulate the edit box. Tilde (~) - adds a variable that controls the grey (enable/disable) state. The variable should precede the call-back function (if any) in the argument list. |
Description |
An edit box created using %eb provides a wide range of advanced text editing features. See Edit box topics for details. N represents the width of the box in average characters. M represents the depth which, if omitted, defaults to 1. buffer is a character string for the text which must be terminated with chr(0). buff_size is the size of the buffer. A zero value may be supplied to allow the edit box to allocate its own memory re-sizing as required (buffer is ignored). %eb will take a pivot (%pv (Pivot)). If the caret modifier (^) is used and the call-back function does not handle the response to control keys such as Delete, Backspace, etc., then it should return a zero value. Routines such as OPEN_EDIT_FILE@ that take an EDIT_INFO block as their first argument can now alternatively use the Windows handle (HWND) of the control for this first argument. This handle is typically obtained by using %lc (Handle of Last Control). 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) |
See also |