[wxMac carbon] ScrollBars Problem

Stefan Csomor csomor at advancedconcepts.ch
Tue Aug 15 06:39:35 PDT 2006


Hi Manfred

> I use wxWidget 2.6.3  MSW & wxMac
> 
> I try to port my app from msw (working fine) but a have some 
> problem with scroll bars
> 
> I use this for the constructor of my one of my window
> 
> "
> MKC_Arbre::MKC_Arbre(MKC_Client *parent , const wxString& title,int
> drap) wxMDIChildFrame( parent, wxID_ANY, title, 
> wxDefaultPosition, wxDefaultSize,wxDEFAULT_FRAME_STYLE | 
> wxNO_FULL_REPAINT_ON_RESIZE |  wxVSCROLL | wxHSCROLL )

I don't think this is a good idea to give the toplevel frame scrolling
styles, this of course works on msw, but it doesn't on mac, and I doubt
it does on gtk. You should add a wxScrolledWindow as first (and probably
only) child. Look at the mdi sample.

Best,

Stefan




More information about the wx-users mailing list