From 318e2071f2bde2fbf5c09797884c773156d10938 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 28 Sep 2005 15:59:25 +0000 Subject: [PATCH] Patch level : 2.2 Files correlati : Ricompilazione Demo : [ ] Commento : Corretta gestione flag di Shown/Hidden in fase di creazione delle finestre in maniera compatibile tra le varie versioni di wxWindows git-svn-id: svn://10.65.10.50/trunk@13378 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- xvaga/xvaga.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xvaga/xvaga.cpp b/xvaga/xvaga.cpp index 8f89922e0..dde849331 100755 --- a/xvaga/xvaga.cpp +++ b/xvaga/xvaga.cpp @@ -642,8 +642,10 @@ IMPLEMENT_DYNAMIC_CLASS(TwxWindowBase, wxWindow) TwxWindowBase::TwxWindowBase(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos, const wxSize &size, long style) { +#if wxCHECK_VERSION(2,6,1) // Evita inutili sfarfallamenti in quanto wxWidgets crea le finestre visibili per default wxWindowBase::Show(false); +#endif Create(parent, id, pos, size, style, title); SetTitle(title); // Triste necessita', la Create sembra ignorare il titolo } @@ -4723,7 +4725,7 @@ WINDOW xvt_win_create(WIN_TYPE wtype, const RCT* rct_p, const char* title, int m if (style & wxVSCROLL) w->SetScrollbar(wxVERTICAL, 0, 1, 100); - xvt_vobj_move((WINDOW)w, rct_p); + //xvt_vobj_move((WINDOW)w, rct_p); // Sembra inutile if (win_flags & WSF_DISABLED) w->Disable(); @@ -4733,17 +4735,15 @@ WINDOW xvt_win_create(WIN_TYPE wtype, const RCT* rct_p, const char* title, int m if (win_flags & WSF_INVISIBLE) w->Hide(); else - w->Show(); + w->Show(); // Non dovrebbe mai succedere nel nostro caso - // Accetta messaggi solo da ora! + // Accetta messaggi solo da ora! w->_eh = eh; EVENT e; memset(&e, 0, sizeof(e)); - e.type = E_CREATE; + e.type = E_CREATE; // Serve a poco, ma fa' lo stesso eh((WINDOW)w, &e); - - // xvt_app_process_pending_events(); // Vietatissimo: arrivano E_PAINT prima di assegnare TWindow::_win - + return (WINDOW)w; }