[wxMac carbon] ScrollBars Problem
Manfred
annonce at cyberpolys.com
Sun Aug 13 02:48:47 PDT 2006
Hi all
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 )
"
In MSW all scroll bars appear automatically but in Mac
I need to call this function
"
MacCreateScrollBars( wxVSCROLL | wxHSCROLL ) ;
"
At this point the scroll bar is show
But when I need to resize my window
the scroll bar is not sized I need to call
"
MacRepositionScrollBars(); (in OnSize)
"
Now the scroll bars is re-sized and re-positioned
but the position of the wxHSCROLL is not well
it just some pixel under the bottom of window
that cause wxHSCROLL don't appear and the
wxVSCROLL is in the good place in right but the
height is to long of some pixel and the last down
arrow is not appear
I suspect a problem MacRepositionScrollBars
but may this an Problem. from my part ....
I don't need to use wxScrolledWindow now and I don't
try in wxMax, may be wxScrolledWindow is better
in wxMax, but in MSW I can manage the scroll bars
in my wxWindow without problem
Tank for help
Manfred
More information about the wx-users
mailing list