On Sun, 25 May 2003 16:41:33 +0200 (CEST) Robert Vazan <[EMAIL PROTECTED]> wrote:

RV> > RV> AFAIK, there is no
RV> > RV> easy way to relayout while preserving window size in wxWindows.
RV> > 
RV> >  Hmm, I don't quite understand this. Why not simply use
RV> > wxWindow::Layout()?
RV> 
RV> It makes no difference against doing nothing.

 There is also SendSizeEvent() but it is unfortunately only in wxFrame, not
wxTopLevelWindow, as it probably should be.

RV> > Here it looks like we could simply check if all wizards pages use
RV> > sizers and then use your new code and otherwise fall back to the old
RV> > behaviour.
RV> 
RV> I guess that most wizard code uses sizers for pages already because it
RV> is recommended in wxWindows documentation. Above autodetection would
RV> then miss its goal most of the time.

 Sorry, I don't follow you -- why? If the users code uses sizers, wxWizard
will use them to size tiself correctly, isn't this what we want?

RV> I am not sure how is it with
RV> compatibility in wxWindows. I though that being *perfectly* compatible
RV> is necessary as people would then fear to upgrade.

 There is one kind of incompatibility which is unacceptable: silent
(meaning no compile-time warnings/errors) change of behaviour which leads
to bad/unexpected results during run-time. But I don't think this one falls
in this category, or am I missing something again?

RV> > > I'd like to simply be able to add all pages to the wizards sizer
RV> > > (wxWizardSizer::Add() would ignore all the parameters except the
RV> > > first one probably). How should it be done with your code?
RV> > 
RV> > I have hard time imagining interface for this that would
RV> > include retrieval of wxWizardSizer and automatic collection of pages.
RV> 
RV> As I think about this, one method could be added to wxWizard
RV> 
RV> wxSizer *wxWizard::GetPageSizer() const;
RV> 
RV> The wizard would behave as before if no pages are added, but upon adding
RV> some pages, it would enlarge itself if necessary. That is, it would be
RV> impossible to make wizard smaller than currently and previously visible
RV> pages. The point here is to replace FitToPage with common wxSizer
RV> interface. Would this extension suffice?

 Yes, it looks great. The goal of all my ramblins was exactly to replace
FitToPage() with the standard wxSizer interface. I believe I had mentioned
it, sorry if I didn't make it clear.

 Thanks again!
VZ



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to