How to keep with the size of the form

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

5 posts / 0 new
Last post
How to keep with the size of the form

Submitted by Anonymous on Wed, 09/25/2002 - 08:31. Developers
I create a form and some components as children of it.
When I resize the form, the children dont resize as the same.
What should I do.
The components are list,text,button widget.

ICS_support

It depends on the constraint resources on the kids. You specify how each edge of each child is attached to the parent form and to the sibling. Perhaps you want the children to stretch proportionally; see XmATTACH_SELF or XmATTACH_POSITION.

How can I color the Button?

Submitted by Anonymous on Fri, 09/20/2002 - 14:16. Developers
If I want to color the compound string of Button,what should I do?
Thanks a lot!

ICS_support

See the XmRenderTable information which is embedded into the font information and which describes how to render it.

Alternatively, it may be enough for you to set the XmNforeground resource (from XmPrimitive) on the button.

Anonymous

Thank you very much.
I made it by useing XmNforeground and XmNbackground resource.
It is easier than using the XmRender Table.