Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue with XmCreateOptionMenu -> XmCreatePulldownMenu -> XmCreatePushButton
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
e p  
View profile  
 More options Oct 27 2009, 7:16 am
Newsgroups: comp.windows.x.motif
From: e p <ep200...@googlemail.com>
Date: Tue, 27 Oct 2009 04:16:01 -0700 (PDT)
Local: Tues, Oct 27 2009 7:16 am
Subject: Issue with XmCreateOptionMenu -> XmCreatePulldownMenu -> XmCreatePushButton
Hi Developers,

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

I'm running a large 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;
XtSetArg(args[ac], XmNx, 0); ac++;
XtSetArg(args[ac], XmNy, 0); ac++;
XtSetArg(args[ac], XmNwidth, 100); ac++;
XtSetArg(args[ac], XmNheight, 300); ac++;
wMD = XmCreatePulldownMenu(XtParent(wMO), "wMD", args, ac);

ac = 0;
XtSetArg(args[ac], XmNuserData, eEnumValue); ac++;
wBP1 = XmCreatePushButton(wMD, "wBP1", args, ac);
XtManageChild(wBP1);

ac = 0;
XtSetArg(args[ac], XmNuserData, eEnumValue); ac++;
wBP2 = XmCreatePushButton(wMD, "wBP2", args, ac);
XtManageChild(wBP2);

ac = 0;
XtSetArg(args[ac], XmNuserData, eEnumValue); ac++;
wBP3 = XmCreatePushButton(wMD, "wBP3", args, ac);
XtManageChild(wBP3);

Immediately after this, the code does an XtVaGetValues on XmNchildren,
to get a WidgetList of all the children of wImageMD - but it returns
null (rather than wBP1, etc). Also, confusingly, XtParent(wBP1) does
appear to return the parent (wMD).

The code worked fine 10 years ago on the HP-UX system, but ultimately
hits a fatal exception in our RHEL system, as further on in the code
it's unable ofcourse to iterate the sub-widgets of wMD (as it's NULL).

Is there an easy fix to this, or does it necessitate a fundamental
rethink of the whole object model? Might it be caused by a changed
semantics to those motif calls over the last 10 years (our RHEL system
has up-to-date motif libraries).

Any comments on this would be appreciated.

Regards,
Ze


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred  
View profile  
 More options Oct 27 2009, 10:27 am
Newsgroups: comp.windows.x.motif
From: Fred <fred.l.kleinschm...@boeing.com>
Date: Tue, 27 Oct 2009 07:27:54 -0700 (PDT)
Local: Tues, Oct 27 2009 10:27 am
Subject: Re: Issue with XmCreateOptionMenu -> XmCreatePulldownMenu -> XmCreatePushButton
On Oct 27, 4:16 am, e p <ep200...@googlemail.com> wrote:

The code you posted says you get the children array from wImageMD, not
wMD.
--
Fred K

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »