How can I control the size of OptionMenu?

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

Questions about motif? Contact us

3 posts / 0 new
Last post
How can I control the size of OptionMenu?

Submitted by Anonymous on Fri, 08/25/2000 - 07:38. Developers
Someone Help me!

How can I control the size(width, height) of OptionMenu which is created by XmCreateOptionMenu()?

Anonymous

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.

Anonymous

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.