Next: Managing Widgets Up: Basic Motif programming principles Previous: Initializing the toolkit

Widget Creation

In Motif, there is a function for creating every widget. To create a widget use the function:

XmCreate<widget name>(). So to create a push button widget we use: XmCreatePushButton()

Most create functions take 4 arguments:

The argument list can be used to set widget resources (height, width etc.) at creation.


Dave.Marshall@cm.cf.ac.uk
Tue May 24 16:52:56 BST 1994