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.

Composite and Constraint<strong>Widget</strong>sof the box, the box will request a larger width fromits parent and will begin the layout process from thebeginning if a new width is granted.XtorientHorizontalWhen the next child does not fit on the current row,the Box widens if possible (so as to keep children ona single row); otherwise a new row is started.After positioning all children, the Box widget attempts to shrink its own size to theminimum dimensions required for the layout.Dialog <strong>Widget</strong>Application Header file Class Header file Class dialog<strong>Widget</strong>ClassClass Name DialogSuperclass FormResourcesThe Dialog widget implements a commonly used interaction semantic to promptfor auxiliary input from a user. For example, you can use a Dialog widget whenan application requires a small piece of information, such as a filename, from theuser. A Dialog widget, which is simply a special case of the Form widget, providesa convenient way to create a preconfigured form.The typical Dialog widget contains three areas. The first line contains a descriptionof the function of the Dialog widget, for example, the string Filename:. The secondline contains an area into which the user types input. The third line can containbuttons that let the user confirm or cancel the Dialog input. Any of these areas maybe omitted by the application.When creating a Dialog widget instance, the following resources are retrieved fromthe argument list or the resource database:Name Class Type Notes Default Valueaccelerators Accelerators AcceleratorTableancestorSensitiveAncestorSensitiveNULLBoolean D Truebackground Background Pixel XtDefault-Background103

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

Saved successfully!

Ooh no, something went wrong!