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

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

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

Post by lester »

Help, please :)
Attachments
1.png
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post 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
lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Post by lester »

I have found solution :))))

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

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

with some other functions make it
joric
Earned a small fee
Earned a small fee
Posts: 11
Joined: Sat Jan 26, 2008 12:52 am
Location: Palo Alto, CA
Contact:

Post by joric »

lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Post by lester »

Thanks, Your solution is great, but I have already write my own wxDialog child class for sheets
joric
Earned a small fee
Earned a small fee
Posts: 11
Joined: Sat Jan 26, 2008 12:52 am
Location: Palo Alto, CA
Contact:

Post 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?
lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Post by lester »

No, I just use wxTopLevelWindow::SetTransparent( 240 )
Post Reply