MDIchild and scrollbars problem

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
adamahmet
In need of some credit
In need of some credit
Posts: 8
Joined: Wed Sep 14, 2005 2:26 pm

MDIchild and scrollbars problem

Post by adamahmet »

My program has a mdiparentframe and mdichildframe.
inside the child there are a gridsizer and a staticbitmap.
problem is lack of scrollbars in childrame.. When a large bitmap is loaded childframe grows.i use gridsizer for zoom stuff. sizer::SetItemMinSize function.
I tried some styles about scrollbars (like wxVSCROLL )on childframe but it doesnt help.
How will i add scrollbars in to childrame?
PS:: I use wxwinodws 2.6.1 and windowsxp.
Thanks
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

Does the setsize function works there?
adamahmet
In need of some credit
In need of some credit
Posts: 8
Joined: Wed Sep 14, 2005 2:26 pm

Post by adamahmet »

if i dont add any sizer mean only childframe and staticbitmap with default styles staticbitmap grows according to chidframe size. when i add gridsizer and set min size of its children (staticbitmap) bitmap size changes due to this.
wxSizer::SetItemMinSize
Post Reply