本文整理汇总了C++中wxActivateEvent类的典型用法代码示例。如果您正苦于以下问题:C++ wxActivateEvent类的具体用法?C++ wxActivateEvent怎么用?C++ wxActivateEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wxActivateEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: OnActivate
void MainFrame::OnActivate(wxActivateEvent& event)
{
/* suggested by Brian Gaff */
if(event.GetActive() && m_vList)
m_vList->SetFocus();
event.Skip();
}
开发者ID:genbtc,项目名称:UltraDefrag,代码行数:7,代码来源:main.cpp
示例2: OnActivate
void wxDocMDIChildFrame::OnActivate(wxActivateEvent& event)
{
wxMDIChildFrame::OnActivate(event);
if (event.GetActive() && m_childView)
m_childView->Activate(event.GetActive());
}
开发者ID:Blackbird88,项目名称:pcsx2,代码行数:7,代码来源:docmdi.cpp
示例3: OnActivate
void wxWebView::OnActivate(wxActivateEvent& event)
{
if (m_impl->page)
m_impl->page->focusController()->setActive(event.GetActive());
event.Skip();
}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:7,代码来源:WebView.cpp
示例4: OnActivate
void wxInputConsumer::OnActivate(wxActivateEvent& event)
{
if ( m_inputHandler && m_inputHandler->HandleActivation(this, event.GetActive()) )
GetInputWindow()->Refresh();
else
event.Skip();
}
开发者ID:BackupTheBerlios,项目名称:wxbeos-svn,代码行数:7,代码来源:inpcons.cpp
示例5: OnActivate
void wxSTEditorFindReplaceDialog::OnActivate(wxActivateEvent &event)
{
event.Skip();
if (event.GetActive() && m_findReplacePanel)
m_findReplacePanel->OnActivate(event);
}
开发者ID:Slulego,项目名称:GD,代码行数:7,代码来源:stefindr.cpp
示例6: OnActivate
void TableFrame::OnActivate(wxActivateEvent& event)
{
if (event.GetActive()) {
wxLogMessage("In TableFrame::OnActivate");
RegisterAsActive("TableFrame", GetTitle());
}
event.Skip(false);
}
开发者ID:lixun910,项目名称:geoda,代码行数:8,代码来源:TableFrame.cpp
示例7: OnActivate
void PCPNewFrame::OnActivate(wxActivateEvent& event)
{
LOG_MSG("In PCPNewFrame::OnActivate");
if (event.GetActive()) {
RegisterAsActive("PCPNewFrame", GetTitle());
}
if ( event.GetActive() && template_canvas ) template_canvas->SetFocus();
}
开发者ID:gouchangjiang,项目名称:opengeoda,代码行数:8,代码来源:PCPNewView.cpp
示例8: OnActivate
void LisaScatterPlotFrame::OnActivate(wxActivateEvent& event)
{
LOG_MSG("In LisaScatterPlotFrame::OnActivate");
if (event.GetActive()) {
RegisterAsActive("LisaScatterPlotFrame", GetTitle());
}
if ( event.GetActive() && template_canvas ) template_canvas->SetFocus();
}
开发者ID:jontheepi,项目名称:geoda,代码行数:8,代码来源:LisaScatterPlotView.cpp
示例9: OnActivate
void TableFrame::OnActivate(wxActivateEvent& event)
{
LOG_MSG("In TableFrame::OnActivate");
if (event.GetActive()) {
RegisterAsActive("TableFrame", GetTitle());
}
event.Skip(false);
}
开发者ID:ndon-ndon,项目名称:geoda,代码行数:8,代码来源:TableFrame.cpp
示例10: OnActivate
void ConnectivityHistFrame::OnActivate(wxActivateEvent& event)
{
LOG_MSG("In ConnectivityHistFrame::OnActivate");
if (event.GetActive()) {
RegisterAsActive("ConnectivityHistFrame", GetTitle());
}
if ( event.GetActive() && template_canvas ) template_canvas->SetFocus();
}
开发者ID:ndon-ndon,项目名称:geoda,代码行数:8,代码来源:ConnectivityHistView.cpp
示例11: OnTLWActivated
// NOTE: binding to this event in the WebView constructor is too early in
// some cases, but leave the event handler here so that users can bind to it
// at a later time if they have activation state problems.
void WebView::OnTLWActivated(wxActivateEvent& event)
{
if (m_impl && m_impl->page && m_impl->page->focusController())
m_impl->page->focusController()->setActive(event.GetActive());
event.Skip();
}
开发者ID:jiezh,项目名称:h5vcc,代码行数:11,代码来源:WebView.cpp
示例12: OnActivateOrDeactivateApp
void Scrubber::OnActivateOrDeactivateApp(wxActivateEvent &event)
{
if (event.GetActive())
mScrubHasFocus = IsScrubbing();
else
mScrubHasFocus = false;
event.Skip();
}
开发者ID:ii0,项目名称:audacity,代码行数:9,代码来源:Scrubbing.cpp
示例13: OnActivate
void TestScrollWinFrame::OnActivate(wxActivateEvent& event)
{
//LOG_MSG("In TestScrollWinFrame::OnActivate");
if (event.GetActive()) {
RegisterAsActive("TestScrollWinFrame", GetTitle());
}
if ( event.GetActive() && template_canvas )
template_canvas->SetFocus();
}
开发者ID:LreeLenn,项目名称:geoda,代码行数:9,代码来源:TestScrollWinView.cpp
示例14: OnActivateOrDeactivateApp
void Scrubber::OnActivateOrDeactivateApp(wxActivateEvent &event)
{
if (event.GetActive())
Pause(!IsScrubbing() || mProject->GetControlToolBar()->IsPauseDown());
else
Pause(true);
event.Skip();
}
开发者ID:MisterZeus,项目名称:audacity,代码行数:9,代码来源:Scrubbing.cpp
示例15: OnActivateApp
void CBOINCGUIApp::OnActivateApp(wxActivateEvent& event) {
if (event.GetActive()) {
if (m_pEventLog && !m_pEventLog->IsIconized()) {
m_pEventLog->Raise();
}
m_pFrame->Raise();
}
event.Skip();
}
开发者ID:vertexclique,项目名称:playground,代码行数:9,代码来源:BOINCGUIApp.cpp
示例16: OnActivate
void MovieWindowQT::OnActivate(wxActivateEvent &inEvent) {
if (mMovie) {
if (inEvent.GetActive())
wxLogTrace(TRACE_STAGE_DRAWING, wxT("Activate movie window."));
else
wxLogTrace(TRACE_STAGE_DRAWING, wxT("Deactivate movie window."));
mMovie->Activate(inEvent.GetActive());
}
}
开发者ID:colonelqubit,项目名称:halyard,代码行数:9,代码来源:MovieWindowQT.cpp
示例17: OnActivate
void EDA_DRAW_FRAME::OnActivate( wxActivateEvent& event )
{
m_FrameIsActive = event.GetActive();
if( m_canvas )
m_canvas->SetCanStartBlock( -1 );
event.Skip(); // required under wxMAC
}
开发者ID:LDavis4559,项目名称:kicad-source-mirror,代码行数:9,代码来源:draw_frame.cpp
示例18: OnActivate
void MutChild::OnActivate(wxActivateEvent& event)
{
if (event.GetActive()) {
mutUnused(event);
mutASSERT(WK_KEY <= winKind && winKind < WK_NULL);
TRACEC;
SetCurrentBox(box);
}
event.Skip();
}
开发者ID:BackupTheBerlios,项目名称:mutabor,代码行数:10,代码来源:MutChild.cpp
示例19: OnActivate
// Default activation behaviour - set the focus for the first child
// subwindow found.
void wxFrame::OnActivate(wxActivateEvent& event)
{
if ( !event.GetActive() )
{
// remember the last focused child if it is our child
m_winLastFocused = FindFocus();
// so we NULL it out if it's a child from some other frame
wxWindow *win = m_winLastFocused;
while ( win )
{
if ( win->IsTopLevel() )
{
if ( win != this )
m_winLastFocused = NULL;
break;
}
win = win->GetParent();
}
event.Skip();
}
else
{
// restore focus to the child which was last focused
wxWindow *parent = m_winLastFocused
? m_winLastFocused->GetParent()
: NULL;
if (parent == NULL)
parent = this;
wxSetFocusToChild(parent, &m_winLastFocused);
#if wxUSE_MENUS
if (m_frameMenuBar != NULL)
{
m_frameMenuBar->MacInstallMenuBar();
}
else
{
wxFrame *tlf = wxDynamicCast( wxTheApp->GetTopWindow(), wxFrame );
if (tlf != NULL)
{
// Trying top-level frame membar
if (tlf->GetMenuBar())
tlf->GetMenuBar()->MacInstallMenuBar();
}
}
#endif
}
}
开发者ID:mark711,项目名称:Cafu,代码行数:56,代码来源:frame.cpp
示例20: OnActivate
void wxHtmlHelpFrame::OnActivate(wxActivateEvent& event)
{
// This saves one mouse click when using the
// wxHTML for context sensitive help systems
#ifndef __WXGTK__
// NB: wxActivateEvent is a bit broken in wxGTK
// and is sometimes sent when it should not be
if (event.GetActive() && m_HtmlHelpWin)
m_HtmlHelpWin->GetHtmlWindow()->SetFocus();
#endif
event.Skip();
}
开发者ID:Teodorrrro,项目名称:wxWidgets,代码行数:13,代码来源:helpfrm.cpp
注:本文中的wxActivateEvent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论