Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

ScrollingDialog

<< < (2/5) > >>

Rossifumi:
yeah...but when i use SetMaxSize(-1,700);
i receive this error in runtime....

i suppose there is a conflict with the

FlexGridSizer->Fit(this);
FlexGridSizer->SetSizeHints(this);

???

dmoore:

--- Quote from: jens on February 09, 2011, 02:59:10 pm ---It should work as for "real" wxDialogs.
We use it for almost all dialogs in C::B and it works correctly there (as far as I know).

--- End quote ---

Is this going to be redundant soon? http://docs.wxwidgets.org/trunk/overview_dialog.html#overview_dialog_autoscrolling

Rossifumi:
thanks for reply...but i don't resolve my problem..
i explain better my situation:
i have a scrollingdialog that is ok...it scrolls...but it initial size is fit in weight, and is fullscreen in height...so, my question is:
"can i resize the scrollingdialog's heigth, so that its initial height is i.e. 700px?"

because it scrolls it isn't important that its height is max in the screen....

thanks for help.

dmoore:

--- Quote from: Rossifumi on February 09, 2011, 03:39:20 pm ---yeah...but when i use SetMaxSize(-1,700);
i receive this error in runtime....

i suppose there is a conflict with the

FlexGridSizer->Fit(this);
FlexGridSizer->SetSizeHints(this);

???

--- End quote ---

Not sure why you need those calls on the sizer.


Have you tried something like:

--- Code: ---        dlg->Fit();
        wxSize s=GetSize();
        if(s.y>700) //shrink if fitted height is more than 700
            dlg->SetSize(s.x,700);

--- End code ---

Jenna:

--- Quote from: dmoore on February 09, 2011, 05:26:00 pm ---
--- Quote from: jens on February 09, 2011, 02:59:10 pm ---It should work as for "real" wxDialogs.
We use it for almost all dialogs in C::B and it works correctly there (as far as I know).

--- End quote ---

Is this going to be redundant soon? http://docs.wxwidgets.org/trunk/overview_dialog.html#overview_dialog_autoscrolling

--- End quote ---
We hopefully do not longer need it, if we can switch to wx2.9/3.0.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version