Silverfrost Logo About Us | Contact Us
 

%eb - Edit Box

Purpose

To insert an edit box.

Syntax

winio@('%N.Meb[options]',bufferbuff_size)
winio@('%`N.Meb[options]',bufferbuff_size, edit_info)
character*(*) buffer     (input/output)
integer buff_size     (input)
integer edit_info(24)     (input/output)

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.

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 (%eb) 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).

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.

See also

%cc - Control Closure

 

 

 

Copyright © 1999-2017 Silverfrost Limited