HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- OSF/Motif & XT - XtGetValues question
Operating System - HP-UX
1833803
Members
2422
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 09:36 AM
07-15-2002 09:36 AM
If this is not the correct forum for Motif - please excuse me - and let me know where I should post it.
I am using the XtGetValues call to try and determine the width of a RowCol widget which is contained in a popup shell. The shell is displayed on the screen before I make the call, as follows:
ac = 0;
XtSetArg(al[ac],XmNwidth, &rcwidth);
ac++;
XtgetValues(rcwidget,al,ac);
The problem is the returned value in rcwidth is a VERY large number (26083318). I believe the width should be in pixels. Am I doing something wrong here?? Thanks in advance for any help
I am using the XtGetValues call to try and determine the width of a RowCol widget which is contained in a popup shell. The shell is displayed on the screen before I make the call, as follows:
ac = 0;
XtSetArg(al[ac],XmNwidth, &rcwidth);
ac++;
XtgetValues(rcwidget,al,ac);
The problem is the returned value in rcwidth is a VERY large number (26083318). I believe the width should be in pixels. Am I doing something wrong here?? Thanks in advance for any help
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 01:28 PM
07-15-2002 01:28 PM
Solution
Hi Joan,
this forum is alright I guess, but you might want to try the HP Developer's list, too...
Assuming that you defined "al" and "rcwidget" like:
XtValues al[1];
Widget rcwidget; /* or similiar */
the resolution would be in pixels. But did your "XtGetValues" succeed?
Run your program inside a terminal window and check the error output...
Oh, and check wether "rcwidget" is actually a NULL pointr :-(
HTH,
Wodisch
this forum is alright I guess, but you might want to try the HP Developer's list, too...
Assuming that you defined "al" and "rcwidget" like:
XtValues al[1];
Widget rcwidget; /* or similiar */
the resolution would be in pixels. But did your "XtGetValues" succeed?
Run your program inside a terminal window and check the error output...
Oh, and check wether "rcwidget" is actually a NULL pointr :-(
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 04:12 AM
07-16-2002 04:12 AM
Re: OSF/Motif & XT - XtGetValues question
Thanks Wodisch for taking time to reply. I followed your suggestions and everything looked good - come to find out I had the return value declared as an integer instead of 'Dimension'. I have to remember to use the Xm typedefs!
(When I figure out how to supply a rating I'll assign you some points - thanks again)
(When I figure out how to supply a rating I'll assign you some points - thanks again)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:34 AM
07-16-2002 09:34 AM
Re: OSF/Motif & XT - XtGetValues question
Hi again,
"Dimension" should be one of the *unsigned* integer types, maybe even 16bit (i.e. "short"), so may have got garbage from the following bytes...
You can assign points as soon as you are logged in - then you'll see blue buttons on the top right of each reply. Click on these to assign the points for that reply. At the bottom of the page should be another blue button to send all your assigned points at once to forums-server...
Regards,
Wodisch
"Dimension" should be one of the *unsigned* integer types, maybe even 16bit (i.e. "short"), so may have got garbage from the following bytes...
You can assign points as soon as you are logged in - then you'll see blue buttons on the top right of each reply. Click on these to assign the points for that reply. At the bottom of the page should be another blue button to send all your assigned points at once to forums-server...
Regards,
Wodisch
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP