OlClassSearchTextDB(3W) UNIX System V OlClassSearchTextDB(3W)
Database Utilities
NAME
OlClassSearchTextDB - register the OPEN LOOK TEXT database on a specific
widget class
SYNOPSIS
#include <Xol/OpenLook.h>
...
void
OlClassSearchTextDB (wc)
WidgetClass wc;
DESCRIPTION
The OlClassSearchTextDB procedure is used to register the OPEN LOOK TEXT
database on a specific widget class.
Once the OPEN LOOK TEXT database is registered with a given widget class,
the OlLookupInputEvent(3W) procedure (if db_flag is OL_DEFAULT_IE or
OL_TEXT_IE) will include this database in the search stack if the given
widget id is a subclass of this widget class.
CAVEAT
The registering order determines the searching order when doing a lookup.
SEE ALSO
OlClassSearchIEDB(3W)
OlCreateInputEventDB(3W)
OlLookupInputEvent(3W)
OlWidgetSearchIEDB(3W)
OlWidgetSearchTextDB(3W)
EXAMPLE
...
#include <Xol/OpenLook.h>
#include <Xol/Stub.h>
...
/* assume: all stub widgets are interested in the */
/* OPEN LOOK TEXT database */
OlClassSearchTextDB(stubWidgetClass);
/* once this step is done, all stub widget instances */
/* will receive OPEN LOOK TEXT commands after a */
/* call to OlLookupInputEvent(), or in the */
/* XtNconsumeEvent callback's OlVirtualEvent */
/* structure supplied with the calldata field. */
...
10/89 Page 1