Docking a frame

Hi,

I have one more question. Does anyone know how to "dock" a frame? What I mean is when the frame first appears, I want it to be "stuck" on the right bottom side of the screen, kind of like when in those fancy drawing programs where you can stick a pop-out toolbar on the side of your screen. Is there a built-in way to do it, or do I just need to do a calculation based on the size of the frame and the user's screen resolution grabbed with wx.DisplaySize?

The only other times I've seen this problem mentioned was in relation to AUI sub-windows docking within another AUI window, not with normal frames.

This is on Windows XP with wxPython 2.8.9.2 and Python 2.5.2

Thanks,

Mike

Hi Mike,

Hi,

I have one more question. Does anyone know how to "dock" a frame? What I
mean is when the frame first appears, I want it to be "stuck" on the right
bottom side of the screen, kind of like when in those fancy drawing programs
where you can stick a pop-out toolbar on the side of your screen. Is there a
built-in way to do it, or do I just need to do a calculation based on the
size of the frame and the user's screen resolution grabbed with
wx.DisplaySize?

The only other times I've seen this problem mentioned was in relation to AUI
sub-windows docking within another AUI window, not with normal frames.

I don't think there is any other way than using wx.DisplaySize and
friends and doing your own calculations. There might be another
possibility when I will release the pure-Python version of wxAUI, in
which you will (probably) be able to dock frames to other frames a la
Winamp.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Fri, Mar 20, 2009 at 8:42 PM, Mike Driscoll wrote:

Hi Andrea,

Hi Mike,

Hi,

I have one more question. Does anyone know how to "dock" a frame? What I
mean is when the frame first appears, I want it to be "stuck" on the right
bottom side of the screen, kind of like when in those fancy drawing programs
where you can stick a pop-out toolbar on the side of your screen. Is there a
built-in way to do it, or do I just need to do a calculation based on the
size of the frame and the user's screen resolution grabbed with
wx.DisplaySize?

The only other times I've seen this problem mentioned was in relation to AUI
sub-windows docking within another AUI window, not with normal frames.
    
I don't think there is any other way than using wx.DisplaySize and
friends and doing your own calculations. There might be another
possibility when I will release the pure-Python version of wxAUI, in
which you will (probably) be able to dock frames to other frames a la
Winamp.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

I kind of figured that was the case, but I thought someone might have released some helper class or something. Thanks though! I'll give that a whirl on Monday, when work starts up again.

Mike

__________ Information from ESET NOD32 Antivirus, version of virus signature database 3952 (20090320) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

···

On Fri, Mar 20, 2009 at 8:42 PM, Mike Driscoll wrote: