Page 1 of 1

How to show modal dialog in this way on Mac OSX ?

Posted: Mon Apr 21, 2008 12:38 pm
by lester
Help, please :)

Posted: Mon Apr 21, 2008 1:04 pm
by Auria
I don't think you can do that without digging into native code. Actually I'm not even sure you can do that with Carbon, your best bet might be expanding wxCocoa

Posted: Wed Apr 23, 2008 6:53 pm
by lester
I have found solution :))))

SetWindowClass (
(WindowRef) dialog->MacGetWindowRef(),
kSheetWindowClass );

ShowSheetWindow (
(WindowRef) dialog->MacGetWindowRef(),
(WindowRef) frame->MacGetWindowRef() );

with some other functions make it

Posted: Sun May 11, 2008 2:45 pm
by joric

Posted: Sun May 11, 2008 3:49 pm
by lester
Thanks, Your solution is great, but I have already write my own wxDialog child class for sheets

Posted: Sun May 11, 2008 3:56 pm
by joric
Did you solve style incoherence shown here?
http://img385.imageshack.us/img385/9427/picture2pz9.png
I dont know how to set this frame style, do you know?

Posted: Sun May 11, 2008 4:10 pm
by lester
No, I just use wxTopLevelWindow::SetTransparent( 240 )