本文整理汇总了C++中wxSysColourChangedEvent类的典型用法代码示例。如果您正苦于以下问题:C++ wxSysColourChangedEvent类的具体用法?C++ wxSysColourChangedEvent怎么用?C++ wxSysColourChangedEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wxSysColourChangedEvent类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: OnSysColourChanged
// Responds to colour changes, and passes event on to children.
void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
{
SetOwnBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
Refresh();
event.Skip();
}
开发者ID:gitrider,项目名称:wxsj2,代码行数:8,代码来源:framuniv.cpp
示例2: OnSysColourChanged
void wxDialogBase::OnSysColourChanged(wxSysColourChangedEvent& event)
{
#ifndef __WXGTK__
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
Refresh();
#endif
event.Skip();
}
开发者ID:AaronDP,项目名称:wxWidgets,代码行数:9,代码来源:dlgcmn.cpp
示例3: OnSysColourChanged
// Responds to colour changes, and passes event on to children.
void wxMDIParentFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
{
if ( m_clientWindow )
{
m_clientWindow->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
m_clientWindow->Refresh();
}
event.Skip();
}
开发者ID:HackLinux,项目名称:chandler-1,代码行数:11,代码来源:mdi.cpp
示例4: OnSysColourChanged
void wxBitmapButton::OnSysColourChanged(wxSysColourChangedEvent& event)
{
m_brushDisabled = wxNullBrush;
if ( !IsEnabled() )
{
// this change affects our current state
Refresh();
}
event.Skip();
}
开发者ID:czxxjtu,项目名称:wxPython-1,代码行数:12,代码来源:bmpbuttn.cpp
示例5: OnSysColorChange
void SpectraDocumentFrame::OnSysColorChange(wxSysColourChangedEvent& event)
{
try
{
HandleSysColorChange();
Update();
event.Skip();
}
catch(oglplus::MissingFunction& mfe) { parent_app.HandleError(mfe, this); }
catch(oglplus::ProgramBuildError& pbe) { parent_app.HandleError(pbe, this); }
catch(oglplus::LimitError& le) { parent_app.HandleError(le, this); }
catch(oglplus::Error& err) { parent_app.HandleError(err, this); }
catch(const std::exception& se) { parent_app.HandleError(se, this); }
}
开发者ID:detunized,项目名称:oglplus,代码行数:14,代码来源:document_frame.cpp
示例6: GetChildren
// Responds to colour changes: passes event on to children.
void wxWindowX11::OnSysColourChanged(wxSysColourChangedEvent& event)
{
wxWindowList::compatibility_iterator node = GetChildren().GetFirst();
while ( node )
{
// Only propagate to non-top-level windows
wxWindow *win = node->GetData();
if ( win->GetParent() )
{
wxSysColourChangedEvent event2;
event.SetEventObject(win);
win->GetEventHandler()->ProcessEvent(event2);
}
node = node->GetNext();
}
}
开发者ID:gitrider,项目名称:wxsj2,代码行数:18,代码来源:window.cpp
示例7: OnSysColor
void ControlColorPreview::OnSysColor(wxSysColourChangedEvent& evt)
{
evt.Skip(true);
}
开发者ID:poppeman,项目名称:Pictus,代码行数:4,代码来源:cnt_colorpreview.cpp
注:本文中的wxSysColourChangedEvent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论