The short answer is set XmNwidth and XmNheight. But in general widget sizes are controlled by the manager they are in, which in turn depends on your layout. If this answer makes no sense, you have a lot to learn... get the O`Reilly Volume 6 book from their X Windows series.
I learned a lot of X and Motif technique, but this is very difficult problem to me.
I have already tested at several kind of container widget.
In the RowColumn widget, the shape of OptionMenu is just like this one
+---------------------------+
| +----------+ +------------+|
| | label widget | |?????????? || * Black mark is area of cascade gadget of
| +----------+ +------------+| OptionMenu.
| +----------+ +------------+|
| | label widget | |?????? ||
| +----------+ +------------+|
| +----------+ +------------+|
| | label widget | |???????? ||
| +----------+ +------------+|
+---------------------------+
In other word, most important shape of OptionMenu( cascade gadget shape )
couldn`t be controlled by XmNwidth or XmNheight resource as well as attribute of container.
In my test procedure, the width of cascade gadget of OptionMenu should be only decided by member widget(child of PulldownMenu) which is most large than other children.
Is this fatalistic remedy?
P.S
I am very sorry about my poor english, I am Korean.
The short answer is set XmNwidth and XmNheight. But in general widget sizes are controlled by the manager they are in, which in turn depends on your layout. If this answer makes no sense, you have a lot to learn... get the O`Reilly Volume 6 book from their X Windows series.
Hi! ecdowney
I learned a lot of X and Motif technique, but this is very difficult problem to me.
I have already tested at several kind of container widget.
In the RowColumn widget, the shape of OptionMenu is just like this one
+---------------------------+
| +----------+ +------------+|
| | label widget | |?????????? || * Black mark is area of cascade gadget of
| +----------+ +------------+| OptionMenu.
| +----------+ +------------+|
| | label widget | |?????? ||
| +----------+ +------------+|
| +----------+ +------------+|
| | label widget | |???????? ||
| +----------+ +------------+|
+---------------------------+
In other word, most important shape of OptionMenu( cascade gadget shape )
couldn`t be controlled by XmNwidth or XmNheight resource as well as attribute of container.
In my test procedure, the width of cascade gadget of OptionMenu should be only decided by member widget(child of PulldownMenu) which is most large than other children.
Is this fatalistic remedy?
P.S
I am very sorry about my poor english, I am Korean.