OR extra style with existing value or some implementations will
have problems (espec. wxGTK modal dialogs closing behaviour) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6258e418a0
commit
0099f3435b
@ -1127,7 +1127,10 @@ void wxXmlResourceHandler::SetupWindow(wxWindow *wnd)
|
||||
//FIXME : add cursor
|
||||
|
||||
if (HasParam(wxT("exstyle")))
|
||||
wnd->SetExtraStyle(GetStyle(wxT("exstyle")));
|
||||
// Have to OR it with existing style, since
|
||||
// some implementations (e.g. wxGTK) use the extra style
|
||||
// during creation
|
||||
wnd->SetExtraStyle(wnd->GetExtraStyle() | GetStyle(wxT("exstyle")));
|
||||
if (HasParam(wxT("bg")))
|
||||
wnd->SetBackgroundColour(GetColour(wxT("bg")));
|
||||
if (HasParam(wxT("fg")))
|
||||
|
@ -1127,7 +1127,10 @@ void wxXmlResourceHandler::SetupWindow(wxWindow *wnd)
|
||||
//FIXME : add cursor
|
||||
|
||||
if (HasParam(wxT("exstyle")))
|
||||
wnd->SetExtraStyle(GetStyle(wxT("exstyle")));
|
||||
// Have to OR it with existing style, since
|
||||
// some implementations (e.g. wxGTK) use the extra style
|
||||
// during creation
|
||||
wnd->SetExtraStyle(wnd->GetExtraStyle() | GetStyle(wxT("exstyle")));
|
||||
if (HasParam(wxT("bg")))
|
||||
wnd->SetBackgroundColour(GetColour(wxT("bg")));
|
||||
if (HasParam(wxT("fg")))
|
||||
|
Loading…
Reference in New Issue
Block a user