(OS X) sheet windows?

Is it possible to make an OS X sheet window (that's one of those modal dialogs that slides down from under the menubar of a parent window) in wxPython?

I've googled and gone through the wxPython uber-demo, but turned up empty-handed so far.

Thanks,
- Joe

Hello,

···

On Oct 23, 2008, at 10:50 PM, Joe Strout wrote:

Is it possible to make an OS X sheet window (that's one of those modal dialogs that slides down from under the menubar of a parent window) in wxPython?

I've googled and gone through the wxPython uber-demo, but turned up empty-handed so far.

IIRC some effects classes for doing this have been added for wxWidgets 2.9.

Currently you would have to use a wxPanel and try to animate showing it yourself.

Cody

Hi Cody,

Hello,

Is it possible to make an OS X sheet window (that's one of those modal dialogs that slides down from under the menubar of a parent window) in wxPython?

I've googled and gone through the wxPython uber-demo, but turned up empty-handed so far.

IIRC some effects classes for doing this have been added for wxWidgets 2.9.

Currently you would have to use a wxPanel and try to animate showing it yourself.

Sheets are different from effects. They're a totally separate dialog type in OS X. The key to implementing sheets is to get wxWidgets to support the idea of "window modal" dialogs, as opposed to "app modal" dialogs, which modal wxDialogs currently are. (i.e. when a window modal dialog pops up, only the window it belongs to gets disabled while the dialog is displayed, not all app windows) IMHO app modal dialogs don't really make sense anymore, as they're a relic of the old Windows behavior, which even Windows has abandoned. (Native dialogs in wx are actually window modal, only wxDialog-derived dialogs exhibit app-modal behavior by default)

I've made a start at sheet support but haven't gotten very far on it, due to more pressing issues eating up what time I have to work on wx. :frowning:

Thanks,

Kevin

···

On Oct 23, 2008, at 8:56 PM, Cody Precord wrote:

On Oct 23, 2008, at 10:50 PM, Joe Strout wrote:

Cody
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Hello,

···

On Fri, Oct 24, 2008 at 10:22 AM, Kevin Ollivier kevin-lists@theolliviers.com wrote:

Hi Cody,

On Oct 23, 2008, at 8:56 PM, Cody Precord wrote:

Hello,

On Oct 23, 2008, at 10:50 PM, Joe Strout wrote:

Is it possible to make an OS X sheet window (that’s one of those modal dialogs that slides down from under the menubar of a parent window) in wxPython?

I’ve googled and gone through the wxPython uber-demo, but turned up empty-handed so far.

IIRC some effects classes for doing this have been added for wxWidgets 2.9.

Currently you would have to use a wxPanel and try to animate showing it yourself.

Sheets are different from effects. They’re a totally separate dialog type in OS X. The key to implementing sheets is to get wxWidgets to support the idea of “window modal” dialogs, as opposed to “app modal” dialogs, which modal wxDialogs currently are. (i.e. when a window modal dialog pops up, only the window it belongs to gets disabled while the dialog is displayed, not all app windows) IMHO app modal dialogs don’t really make sense anymore, as they’re a relic of the old Windows behavior, which even Windows has abandoned. (Native dialogs in wx are actually window modal, only wxDialog-derived dialogs exhibit app-modal behavior by default)

Yes, I am well aware of this. I was just stating that I had remember seeing one being used in one of the wxwidgets C++ samples sometime last spring. I have been having some troubles as of late getting the trunk to run on my machine so I couldn’t double check to see which one it was in.

cody