comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: absolute widget positions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: absolute widget positions [message #63030] Fri, 24 October 2008 05:00 Go to next message
Wout De Nolf is currently offline  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 Go to previous message
AndiBiffar is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: DEPTH_TEST_FUNCTION, DEPTH_TEST_DISABLE properties (send an object to back)
Next Topic: absolute widget positions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:34:37 PDT 2025

Total time taken to generate the page: 0.00188 seconds