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.

ExampleComposite and Constraint<strong>Widget</strong>scomes visible (due to constraints imposed by the parent of the Form). This layoutmethod uses the bottom, top, left, and right resources. These resources are usedto determine what will happen to each edge of the child when the Form is resized. Ifa value of XawChain is specified, the the edge of the child will remaina fixed distance from the chain edge of the Form. For example if XawChainLeft isspecified for the right resource of a child then the right edge of that child will remaina fixed distance from the left edge of the Form widget. If a value of XawRubberis specified, that edge will grow by the same percentage that the Form grew. Forinstance if the Form grows by 50% the left edge of the child (if specified as XawRubberwill be 50% farther from the left edge of the Form). One must be very carefulwhen specifying these resources, for when they are specified incorrectly childrenmay overlap or completely occlude other children when the Form widget is resized.Edge Type Resource Name DescriptionXawChainBottom ChainBottom Edge remains afixed distance frombottom of FormXawChainLeft ChainLeft Edge remains a fixed distancefrom left of FormXawChainRight ChainRight Edge remains a fixed distancefrom right of FormXawChainTop ChainTop Edge remains a fixed distancefrom top of FormXawRubber Rubber Edges will move a proportionaldistanceIf you wish to force the Form to never resize one or more of its children, then setleft and right to XawChainLeft and top and bottom to XawChainTop. This willcause the child to remain a fixed distance from the top and left edges of the Form,and never to resize.Convenience RoutinesTo force or defer a re-layout of the Form, usevoid XawFormDoLayout( w, do_layout);wdo_layoutSpecifies the Form widget.Specifies whether the layout of the Form widget is enabled(True) or disabled (False).When making several changes to the children of a Form widget after the Form hasbeen realized, it is a good idea to disable relayout until after all changes have beenmade.Paned <strong>Widget</strong>111

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

Saved successfully!

Ooh no, something went wrong!