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
This commit is contained in:
parent
93f7c60c80
commit
318e2071f2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user