12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Simple <strong>Widget</strong>sSuperclass LabelResourcesThe Command widget is an area, often rectangular, that contains text or a graphicalimage. Command widgets are often referred to as ``push buttons.'' When thepointer is over a Command widget, the widget becomes highlighted by drawing arectangle around its perimeter. This highlighting indicates that the widget is readyfor selection. When mouse button 1 is pressed, the Command widget indicates thatit has been selected by reversing its foreground and background colors. When themouse button is released, the Command widget's notify action is invoked, callingall functions on its callback list. If the pointer is moved off of the widget before thepointer button is released, the widget reverts to its normal foreground and backgroundcolors, and releasing the pointer button has no effect. This behavior allowsthe user to cancel an action.When creating a Command widget instance, the following resources are retrievedfrom the argument list or from the resource database:Name Class Type Notes Default Valueaccelerators Accelerators AcceleratorTableancestorSensitiveAncestorSensitiveNULLBoolean D Truebackground Background Pixel XtDefault-Backgroundbackground-PixmapPixmap Pixmap XtUnspecifiedPixmapbitmap Bitmap Pixmap NoneborderColor BorderColor Pixel XtDefault-ForegroundborderWidth BorderWidth Dimension 1callback Callback XtCallbackList NULLcolormap Colormap Colormap Parent'sColormapborderPixmap Pixmap Pixmap XtUnspecifiedPixmapcornerRound-PercentCornerRound-PercentDimension 25cursor Cursor Cursor NonecursorName Cursor String NULLdepth Depth int C Parent's Depthdestroy-CallbackCallback XtCallbackList NULLencoding Encoding UnsignedChar XawTextEncoding8bitfont Font XFontStruct XtDefaultFont22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!