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:
@@ -92,12 +92,15 @@ protected:
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
|
||||
// create the control of the given Window class
|
||||
bool MSWCreateControl(const wxChar *classname,
|
||||
const wxString& label,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long style);
|
||||
long style,
|
||||
bool visible = true);
|
||||
|
||||
|
||||
// NB: the method below is deprecated now, with MSWGetStyle() the method
|
||||
// above should be used instead! Once all the controls are updated to
|
||||
@@ -117,7 +120,8 @@ protected:
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
const wxString& label = wxEmptyString,
|
||||
WXDWORD exstyle = (WXDWORD)-1);
|
||||
WXDWORD exstyle = (WXDWORD)-1,
|
||||
bool visible = true);
|
||||
|
||||
// default style for the control include WS_TABSTOP if it AcceptsFocus()
|
||||
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
||||
|
Reference in New Issue
Block a user