Re: absolute widget positions [message #63030] |
Fri, 24 October 2008 05:00  |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
On Fri, 24 Oct 2008 00:34:56 -0700 (PDT), AndiBiffar@googlemail.com
wrote:
> Hello everybody,
>
> i am trying to position a popup widget relative to an already existing
> gui. Is there a way to get the absolute position of the underlying
> parent widget on the screen. The problem is that i dont hav ea
> reference of the parent widget. Is there way to get access to the
> positions of all the currently acitve widgets.
>
> Cheers
> Andi
Use WIDGET_INFO with the GEOMETRY keyword on the parent widget's ID.
As for getting this ID, when does the popup widget pops up? Probably
after some user action in the main widget no? User action means event,
event means structure with ev.top as the top-level parent.
Did that answer your questions?
|
|
|
Re: absolute widget positions [message #63096 is a reply to message #63030] |
Tue, 28 October 2008 04:37  |
AndiBiffar
Messages: 7 Registered: October 2008
|
Junior Member |
|
|
On 24 Okt., 13:00, Wox <s...@nomail.com> wrote:
> On Fri, 24 Oct 2008 00:34:56 -0700 (PDT), AndiBif...@googlemail.com
> wrote:
>
>> Hello everybody,
>
>> i am trying to position a popup widget relative to an already existing
>> gui. Is there a way to get the absolute position of the underlying
>> parent widget on the screen. The problem is that i dont hav ea
>> reference of the parent widget. Is there way to get access to the
>> positions of all the currently acitve widgets.
>
>> Cheers
>> Andi
>
> Use WIDGET_INFO with the GEOMETRY keyword on the parent widget's ID.
> As for getting this ID, when does the popup widget pops up? Probably
> after some user action in the main widget no? User action means event,
> event means structure with ev.top as the top-level parent.
>
> Did that answer your questions?
Yes, thx my main problem was how to apply the widget_info if i dont
know whats the top-level parent. Is there a way to get a list of all
the widgets currently active?
Cheers
Andi
|
|
|