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.
Wed, 07/18/2012 - 14:46
#1
How to keep with the size of the form
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.
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!
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.
Thank you very much.
I made it by useing XmNforeground and XmNbackground resource.
It is easier than using the XmRender Table.