Motif General Discussion

Syndicate content

XmScale does not honor XmNshowValue=XmNEAR_BORDER

This is openmotif 2.2.3 on RHEL4.6 .

Basically, it does not matter if I set XmNshowValue to XmNEAR_BORDER or XmNEAR_SLIDER. I get the XmNEAR_SLIDER behavior in either case. Any idea, anyone?

how to popup window without focus?

HI to all.
I have this problem:
I do not want to lose a focus on a window when popup another windows.

How to?
thank you

karmax

Resize method not called

I have written a Grid widget that is a subclass of XmDrawingArea. An instance of this widget is a child of an XrtTabManager (I have also used an XmNotebook, with same results). When this child is not the visible page, the app does some processing that causes the Grid widget to resize. However, the Grid's Resize method is not invoked.

If I register an event handler on the widget using StructureNotifyMask; the event handler proc does get called with event type ConfigureNotify and the widget's size has changed.

Issue with XmCreateOptionMenu -> XmCreatePulldownMenu -> XmCreatePushButton

Hi Motif Developers,

If you could please help with the following query this would be much appreciated.

I'm running a large and complex motif system on linux, originally developed about 10 years ago for HP-UX, which works fine apart from the following issue -

There is some code as follows -

...
XtSetArg(args[ac], XmNx, 300); ac++;
XtSetArg(args[ac], XmNy, 10); ac++;
XtSetArg(args[ac], XmNwidth, 240); ac++;
XtSetArg(args[ac], XmNheight, 30); ac++;
wMO = XmCreateOptionMenu(wOption1, "wMO", args, ac);
XtManageChild(wMO);

ac = 0;

Porting on MINIX 3

Hi developers,

Me interests question. It is planned ported library Open Motif for a platform MINIX 3?

Thanks.

Tota

Problems about XtOpenDisplay

I got a problem when try to move my progarm form solaris to linux..

here is the code in solaris,it will read the file "Xmfc" when running.
But it seems cannot read when running in linux!!
i really want to know why?

#include
#include
#include

Display *display;
XtAppContext context;
Widget toplevel,manager,exit_button;
...

int main(int argc, char **argv){

....

XtToolkitInitialize();
context = XtCreateApplicationContext;

strcpy(dpy,":0.0");
display = XtOpenDisplay( context, dpy, NULL, "Xmfc", NULL, 0, &argc, argv );

Copying XmStrings

I want to make a copy of an XmString, replacing all separators
(newlines) with a string
(such as " | " ) so that the new XmString has only one line. I want to
preserve all
of the font element tags, layouts, charsets, locales, renditions, etc.
associated with
each of the text segments.

Is there an easy way to do this?

(Also posted to comp.windows.x.motif)
--
Fred K

Issues with XmList in Motif2.1

Hi,

I am very new to this forum. This is my first post on the forum and the first one is a question only. :(

Well recently we migrated from RedHat 2.4.x to 2.6.9 version (RedHat 4.0). And I did find that XmList on the new server is very weird. It doesn;t clear its content even when structures bind to it are cleared off.
The application is compiled on Motif 1.2 runtime libraries and probable RedHat 4.0 comes with Motif2.1

If any one can help?

--Ash

How to catch combobox dropdown/popup event?

Hi, ALL,
This is my first post, so please forgive me for something I don't know... ;-)

On this link: http://www.opengroup.org/openmotif/docs/m214a.pdf it mentioned that you can use CBDropDownList() in order to handle combo box dropdown/popup events. However I can't seems to find out what XEvent I need to react in order to handle those events.

Can somebody help me with this? I want to catch mouse clicks as well as keyboard events...

Thank you.

compile openmotif-2.3.2 error ([UilLexPars.h] Error 1)

I successfully 'configure'd openmotif-2.3.2

But When I run 'make', I got the following error. Can somebody let me know how to fix the error?

gcc -E -I../../../../tools/wml Exm.h | ../../../../tools/wml/wml
ln: creating symbolic link `./Exm.h': File exists
make[4]: *** [UilLexPars.h] Error 1
make[4]: *** Waiting for unfinished jobs....
ln: creating symbolic link `./Exm.h': File exists
make[4]: *** [UilConst.h] Error 1
ln: creating symbolic link `./Exm.h': File exists
make[4]: *** [UilKeyTab.h] Error 1
ln: creating symbolic link `./Exm.h': File exists