Popup window with rounded corners?

Is it possible to have rounded corners on a popup window or some other
panel that is on top of the rest of your window? I'm trying out the
TopLevelWindow and SetShape, however focus issues are causing me
problems.

···

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Anyone familiar with wx.Overlay? Would a child window that used
overlay in it's paint handler draw transparently over the parent
window or would it draw transparently over its own square gray
rectangle?

I'm trying to create a control so obviously I don't want to modify the
parent window code.

···

On May 4, 12:45 am, Mark <markree...@gmail.com> wrote:

Is it possible to have rounded corners on a popup window or some other
panel that is on top of the rest of your window? I'm trying out the
TopLevelWindow and SetShape, however focus issues are causing me
problems.

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Is it possible to have rounded corners on a popup window or some other

panel that is on top of the rest of your window?

I’ve done that with a shaped wxFrame, if that would be OK for your needs.

I’m trying out the

TopLevelWindow and SetShape, however focus issues are causing me

problems.

What specifically is the problem?

Che

···

On Mon, May 3, 2010 at 12:45 PM, Mark markreed99@gmail.com wrote:

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

wx.Overlay on anything but OSX is basically just some sleight-of-hand with a wx.ClientDC, so it will have the same features/limitations as drawing on a window with a client DC.

···

On 5/3/10 12:48 PM, Mark wrote:

Anyone familiar with wx.Overlay? Would a child window that used
overlay in it's paint handler draw transparently over the parent
window or would it draw transparently over its own square gray
rectangle?

--
Robin Dunn
Software Craftsman

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

One use is for a status bar popup and when highlighting the menu,
popping up a frame takes the focus which closes the menu. Another case
is popping it up during typing - losing the focus obviously interrupts
the user at the keyboard even if you give it right back.

···

On May 4, 4:01 am, C M <cmpyt...@gmail.com> wrote:

On Mon, May 3, 2010 at 12:45 PM, Mark <markree...@gmail.com> wrote:
> Is it possible to have rounded corners on a popup window or some other
> panel that is on top of the rest of your window?

I've done that with a shaped wxFrame, if that would be OK for your needs.

I'm trying out the

> TopLevelWindow and SetShape, however focus issues are causing me
> problems.

What specifically is the problem?

Che

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Since I can't have a panel draw itself transparently -

Can a parent panel/frame draw over its children? I assume parent paint
event occurs first then the children? Is there a way to paint
afterwards?

Is that wx.Overlay? and would it be appropriate for drawing basically
popup windows?

···

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Since I can't have a panel draw itself transparently -

Can a parent panel/frame draw over its children? I assume parent paint
event occurs first then the children? Is there a way to paint
afterwards?

No.

Is that wx.Overlay? and would it be appropriate for drawing basically
popup windows?

On Mac wx.Overlay can probably be used that way, but on the other platforms wx.Overlay is simulated by using a wx.ClientDC so it would be subject to the same clipping of the child widgets restriction.

···

On 5/13/10 11:18 AM, Mark wrote:

--
Robin Dunn
Software Craftsman

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Is is possible to add the ability to draw a popup window with
transparency to widgets or wxpython?

Or to make it possible to create a (shaped) frame without having it
receive focus when shown? That is no focus event at all, not by
receiving then giving back the focus.

Mark

···

On May 16, 3:26 am, Robin Dunn <ro...@alldunn.com> wrote:

On 5/13/10 11:18 AM, Mark wrote:

> Since I can't have a panel draw itself transparently -

> Can a parent panel/frame draw over its children? I assume parent paint
> event occurs first then the children? Is there a way to paint
> afterwards?

No.

> Is that wx.Overlay? and would it be appropriate for drawing basically
> popup windows?

On Mac wx.Overlay can probably be used that way, but on the other
platforms wx.Overlay is simulated by using a wx.ClientDC so it would be
subject to the same clipping of the child widgets restriction.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Is is possible to add the ability to draw a popup window with
transparency to widgets or wxpython?

I don't know. That would be a wxWidgets thing and probably varies by platform.

Or to make it possible to create a (shaped) frame without having it
receive focus when shown? That is no focus event at all, not by
receiving then giving back the focus.

Using the wx.FRAME_TOOL_WINDOW style may behave that way, at least it used to on some platforms.

···

On 5/15/10 1:05 PM, Mark wrote:

--
Robin Dunn
Software Craftsman

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en