Getting the absolute position of a widget

Getting the absolute position of a widget

Post by Brad Cho » Thu, 18 Nov 2004 20:20:43


Hi,

I would like to ask for help about how to get the absolute position value of a widget. The function 'XtVaGetValue' could be used to get a relative position of a widget, and that positin is measured in its parent widget. But I would like to know the absolute position of a widget regardless of its parent.

I will appreciate it if anyone lets me know about this.

Thanks.

Brad Choi


-------------- KORNET -------------
 
 
 

Getting the absolute position of a widget

Post by Fred L. Kl » Fri, 19 Nov 2004 00:03:27


After usijng XtVaGetValues() for XmNx and XmNy, convert that position to
secreen coordinates using XtTranslateCoords().
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94 (206)544-5225

 
 
 

Getting the absolute position of a widget

Post by Pascal COL » Thu, 25 Nov 2004 06:05:01

http://www.yqcomputer.com/



"Brad Choi" < XXXX@XXXXX.COM > a ecrit dans le message de

of a widget. The function 'XtVaGetValue' could be used to get a relative
position of a widget, and that positin is measured in its parent widget. But
I would like to know the absolute position of a widget regardless of its
parent.