Object library ObjcChange() ObjcWindDraw()
Programming guideline of WinDom

ObjcEdit()

NAME

ObjcEdit() - control texte edition in EDITABLE object.

PROTOTYPAGE

int ObjcEdit( int mode, void *win, int obj, int val, INT16 *idx, int kind);

PARAMETERS

mode:

OC_FORM:
if the formular is a window,

OC_TOOLBAR:
if the formular is a toolbar,

OC_OBJC:
if is a classic formular,

win:
a window descriptor or an object tree (OC_OBJC),

obj:
object index to edit,

val:
parameter depending on the kind parameter,

*idx:
position of cursor,

kind:
possible values are :

ED_INIT
activate the cursor initiale position is given by *idx,

ED_END
desactivate the cursor

ED_CHAR
insert the charater 'val' at current cursor position,

ED_BLC_OFF
desactivate a selection,

ED_BLC_START
set the beginning of a selection,

ED_BLC_END
set the end of a selection activate it,

return:
a negative code error.

DESCRIPTION

This function replaces the AES objc_edit() function and works with all editable field. ED_BLC_OFF, ED_BLC_START and ED_BLC_END are extended modes only valid with XEDIT objects (WinDom extended editable fields). This function is currently under developpement.

SEE ALSO

objc_edit()