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 » Mon Apr 21, 2008 12:38 pm

Help, please :)
Attachments
1.png

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Mon Apr 21, 2008 1:04 pm

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 » Wed Apr 23, 2008 6:53 pm

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 » Sun May 11, 2008 2:45 pm


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

Post by lester » Sun May 11, 2008 3:49 pm

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 » Sun May 11, 2008 3:56 pm

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 » Sun May 11, 2008 4:10 pm

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

Post Reply