XiDBPushButton
. The uil file creates both kinds. The
simple pushbutton labeled "contains" executes a search on the
database Accounts.Name's matching anything which contains the
string in the textfield widget to the left. The XiDBPushButton
,
on the other hand, is fully wired to perform a Query-By-Example
search on the Accounts.Name fields in the usual SQL fashion.
No hand coding was required to do this, in contrast to the
sibling button.
The accounts_Name data field is a subclass of a standard Motif
text field widget, and therefore functions such as
XmTextSetString()
, used in the code fragment, will work with
it.
Download source that demonstrates this. This is C++ and UIL source, and it should compile and run on your machine.
ICS Support Crew March 1997