WDS_PointerEntry

WDS_PointerEntry

wds

1998 12-05


CLASS

WDS_PointerEntry - semi-automatic string-entry widget


SYNOPSIS

Class WDS_PointerEntry operates similarly to WDS_GetString from whom it inherits most of its functionality. It extends the functionality by allowing the application to specify a pointer to a standard data item. If the value in the pointer changes, the widget automatically updates its display. Also, if the widget gets a new value interactively from the user, it automatically updates the value in the pointer. Note that neither WDS_PointerEntry nor WDS_GetString use the WDS_Widget state-change callback mechanism, so it is still available for application use.


PUBLIC MEMBER FUNCTIONS

Inheritance from class WDS_GetString



void SetPointer(void *set)

void *GetPointer(void)
Set/Get the pointer containing the value to be used and updated, cast to a void pointer.



void SetPointerType(long set)

long GetPointerType(void)
Set/Get the type of data pointed to in the void pointer. Can be one of the following enumeration.



WDS_LONG type: long
WDS_FLOAT type: float
WDS_BUFFER type: char * (space pre-allocated)
WDS_STRING type: WDS_String


STATE CHANGES

Inherited from WDS_GetString



WDS_STATE_0 End of edit
WDS_STATE_1 Start of edit


FILES

wds/pentry.h Pointer Entry header file


SEE ALSO

WDS_intro(3), WDS_Widget(3), WDS_GetString(3), WDS_String(3)