List Info

Thread: Dialog box screen location in reference to Main Window




Dialog box screen location in reference to Main Window
user name
2006-12-02 04:02:56

Hi!
 
A relatively trivial matter; ref: wxWidgets Manual (CHM):
 
wxWindow::GetPosition
and
 
wxWindow::GetSize
 
Which gives you the necessary cartesian parameters. Attached is a modification of the original zip with "relative" positioning added.
 
You may also want to consider alternatives to creating separate windows, which some users find distracting. Some users prefer to have all elements "contained" within the main window. However, even in that paradigm, the positioning method(s) would remain the same.
 
HTH:
 ;
thx,
Dave S.
 
 
wxMS_developers · Development with wxWidgets on MSWindows 
 
wxMS_developers RSS feed
 
wxWidgets Code Exchange
-- On Fri, 1 Dec 2006 14:43:01 -0500 Peter Rung wrote --
> Dave,
>
>
> This was a good example for me to emulate.  Now, since I want the
> child and neighbor to appear to the left and right of the main
> window, wherever the main window is, I then have to determine the
> location of the main window first.  Additionally, I need to read
> the “actual” height and width of the main window since I do need to
> have “Fit to Size” checked.
>
>
> Thanks for your help.
>
>
> Thanks,
>
>
> Peter
>
>
> From: wxMS_developersyahoogroups.com
> [ wxMS_developers@yahoogroups.com]">mailto:wxMS_developersyahoogroups.com] On Behalf Of Dave Silvia
> Sent: Friday, December 01, 2006 10:35 AM
> To: wxMS_developersyahoogroups.com
> Subject: [wxMS_developers] Re: [anthemion-devtools] Dialog box
> screen location in reference to Main Window
>
>
> BTW,
>
> Uncheck the Fit to content box for each Dialog in DB to get a
> clearer idea of the layout.
>
> fyi,
> Dave S.
>
> --- In wxMS_developersyahoogroups.com, Dave Silvia
> wrote:
>
>> Hi!
>>
>> Try the attached zip. It contains a .pjd and sources with hand
>>
> coding. I believe
>> it does what you want.
>>
>> HTH:
>>
>> thx,
>> Dave S.
>>
>>
>> wxMS_developers · Development with wxWidgets on MSWindows
>>
>> wxMS_developers RSS feed
>>
>> wxWidgets Code Exchange
>>
>> -- On Fri, 01 Dec 2006 13:08:57 -0000 Peter Rung wrote --
>>
>>> I have an application with a wxFrame and wxPanel as the main
>>> window. Let's say it is centered upon launch and is 300 pixels
>>> wide and 400 pixels long. I have Dialog Window 1 which is 400
>>> pixels wide and 500 pixels long. I would like DW1 to appear to
>>> the left of the main window, directly adjacent to it and have
>>> the tops of the Window align. Additionally, I want to do the
>>> same thing with Dialog 2, only on the right side of the main
>>> window.
>>>
>>> I have tried to unchecked the "centre" attribute in the dialog
>>> box and then attemtped to manupulate "x" and "y" attributes,
>>> w/o avail.
>>>
>>> Any thoughts as to how to do this in DB?
>>>
>>> Thanks,
>>>
>>> Peter
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>> To visit your group on the web, go to:
>>>
>>> Your email settings:
>>> Individual Email | Traditional
>>>
>>> To change settings online go to:
>>> ID required)
>>>
>>> To change settings via email:
>>> anthemion-devtools-digest@yahoogroups.com">mailto:anthemion-devtools-digestyahoogroups.com
>>> anthemion">mailto:anthemion- devtools-fullfeaturedyahoogroups.com
>>>
>>> To unsubscribe from this group, send an email to: anthemion-
>>> devtools-unsubscribeyahoogroups.com
>>>
>>> Your use of Yahoo! Groups is subject to:
>
>
>

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )