Applied patch [ 598016 ] remove flicker during combo box creation
By Benjamin I. Williams (biwillia76) The attached patch completely fixes the flicker problem when creating combo boxes. It also will make it elementary to remove flicker during the creation of other controls (although all the other controls are flicker free, AFAIK). It does this by adding an optional 'visible' parameter to the internal MSWCreateControl method, whereby the caller can create a control invisibly by default, perform some complicated sizing calculations, and then finally show the control before the Create finished. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -326,7 +326,7 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
|
||||
// and now create the MSW control
|
||||
if ( !MSWCreateControl(_T("COMBOBOX"), msStyle) )
|
||||
if ( !MSWCreateControl(_T("COMBOBOX"), msStyle, pos, size, wxEmptyString, (WXDWORD)-1, false) )
|
||||
return FALSE;
|
||||
|
||||
// A choice/combobox normally has a white background (or other, depending
|
||||
@@ -360,6 +360,9 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
);
|
||||
}
|
||||
|
||||
// finally, show the combo box
|
||||
Show(true);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user