Open Motif 2.3 Discussion

Syndicate content

Resizing TopLevel / Main dialog

I am needing to resize the TopLevel (main dialog) of my application. I have some toolbars that I want the user to able to display or hide as he / she so chooses; however, when they are not displayed I need to be able to resize (shrink) the dialog to compensate for the space that the toolbars once took up. I do not want the user to be able to resize the dialog his / her self. I want the sesizing to be controlled programatically; therefore, I have set XmNminWidth, XmNwidth, XmNmaxWidth, XmNminHeight, XmNheight, and XmNmaxHeight.

C. Lamb

Pixmaps in Menu's...

Is it possible to use Pixmaps in Menu's along with text, the accelerator key, and Mnemonics... I have tried using the XmIconButton but it does not allow the user to set accelerator's and mnemonics. I have also attempted to add a Pixmap to a XmPushButton but then I am unable to display the text.

Help would be greatly appreciated.
C. Lamb

integrating cairo with openmotif ?

$(Subject) - feasible ?

cheers,
-Krish

XmPushButton... Pixmaps...

Is there a way to display both the text and an Icon / Pixmap in a standard PushButton? In the past I don't think that this was possible; however, I think that I read that the functionality has been updated to allow this. Is this true?

Thanks.
C. Lamb

ToolTips... 2 Questions...

(1.) Is there a way to tell if a Widget has a ToolTip associated with it?
(2.) Is there a way to set ToolTips on a scrolled list?

Tables in XmHTML

I am having problems with Table display using the XmHTML Widget.

(1.) It doesn't perform spacing properly and appears to place multiple returns between tables. Also, it gets worse when a table is the child of another.

(2.) It appears to overlap table with images when the, for example, the image is in the left cell and the data is in the right.

ScrollWindow Resize...

Is there a way to capture the resize event of a ScrollWindow that has a scroll policy of XmAUTOMATIC? I am needing to get the XmNsliderSize and a few other preferences; however, they vary depending on the time in which they are retrieved. The only time that I have been able to get the proper data for the preferences is during the XmNvalueChangedCallback of a ScrollBar. I am needing the preferences before then; moreover, if I get them during an event I don't want it to have to be an event initiated by the user.

C. Lamb

Mouse wheel support

Hello all.

We are thinking about adding mouse wheel support to OpenMotif.

It seems, that translation tables of XmText, XmScrollBar and XmScrolledWindow should be changed to support new mouse controls.

We should determine default behaviour of the mouse wheels we want to see in OpenMotif.

I investigated this functionality in other toolkits and found the following:

GTK2:
Scrolling 1st wheel
in text widget scrolls text by 3 lines
in vertical and horizontal scroll bars scrolls by 5 steps
Scrolling 1st wheel with Shift, Control or Meta(Alt) key pressed