X and Y coordinates become default(0) after XtManageChildren

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

Questions about motif? Contact us

4 posts / 0 new
Last post
X and Y coordinates become default(0) after XtManageChildren

Submitted by Anonymous (not verified) on

Fri, 06/15/2012 - 12:07

Hello
I have a small problem regarding a form and two widgets attached on it. So mainly, I want to display this two widgets in that form on a timer callback:
XtAppAddTimeOut(app_context,
(unsigned long) 3000, /* milliseconds */
display_widgets,
client_data) ;
Practically, I'm seting XtManageChildren for each of this widget (which is a XmText, btw) in display_widgets function, which comes at 3 seconds. In this function I have an if statement for letting me display the widgets (XtManageChildren) and on the next call of this function, I'm doing XtUnmanageChildren (for disappear). My problem is that I'm setting for each of these two widgets a different X and Y values. For the first widgt it's ok, but for the second widget, after it does XtManageChildren, the XmNx and XmNy values become default (0 and 0). Why it doesn't let me specify the wanted values for X and Y coordinates?
Btw, I'm a newbie :)
Help me please !!
‹ question on XmStringUnparse How can I highlight a portion of text in a Label Widget ? ›

 

Submitted by yahubat on

Submitted by yahubat on

Tue, 07/17/2012 - 10:24

 

Tue, 11/01/2005 - 11:25#1

Dvorak

There is nobody who encountered such a problem?

If you think that it could help, I can post parts of the code that might help you to understand the situation.
Thank you so much for any help !

  •  

 

 

 

Submitted by yahubat on

Tue, 07/17/2012 - 10:24

 

Sat, 11/26/2005 - 15:43#2

Anonymous

Details

Dvorak wrote:

If you think that it could help, I can post parts of the code that might help you to understand the situation.

Can you PM me with more details? thanks. :D

 

Mon, 11/28/2005 - 08:44#3

Mon, 11/28/2005 - 08:44#3

Submitted by yahubat on

Tue, 07/17/2012 - 10:24

Mon, 11/28/2005 - 08:44#3

Dvorak

X and Y coordinates become default(0) after XtManageChildren

Thank you for the concerning, but I resolved the problem. I'm using now XmDrawingArea and it works great.