本文整理汇总了C++中wxActivateEvent类的典型用法代码示例。如果您正苦于以下问题:C++ wxActivateEvent类的具体用法?C++ wxActivateEvent怎么用?C++ wxActivateEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wxActivateEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnActivate
void MainFrame::OnActivate(wxActivateEvent& event)
{
/* suggested by Brian Gaff */
if(event.GetActive() && m_vList)
m_vList->SetFocus();
event.Skip();
}
示例2: OnActivate
void wxDocMDIChildFrame::OnActivate(wxActivateEvent& event)
{
wxMDIChildFrame::OnActivate(event);
if (event.GetActive() && m_childView)
m_childView->Activate(event.GetActive());
}
示例3: OnActivate
void wxWebView::OnActivate(wxActivateEvent& event)
{
if (m_impl->page)
m_impl->page->focusController()->setActive(event.GetActive());
event.Skip();
}
示例4: OnActivate
void wxInputConsumer::OnActivate(wxActivateEvent& event)
{
if ( m_inputHandler && m_inputHandler->HandleActivation(this, event.GetActive()) )
GetInputWindow()->Refresh();
else
event.Skip();
}
示例5: OnActivate
void wxSTEditorFindReplaceDialog::OnActivate(wxActivateEvent &event)
{
event.Skip();
if (event.GetActive() && m_findReplacePanel)
m_findReplacePanel->OnActivate(event);
}
示例6: OnActivate
void TableFrame::OnActivate(wxActivateEvent& event)
{
if (event.GetActive()) {
wxLogMessage("In TableFrame::OnActivate");
RegisterAsActive("TableFrame", GetTitle());
}
event.Skip(false);
}
示例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();
}
示例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();
}
示例9: OnActivate
void TableFrame::OnActivate(wxActivateEvent& event)
{
LOG_MSG("In TableFrame::OnActivate");
if (event.GetActive()) {
RegisterAsActive("TableFrame", GetTitle());
}
event.Skip(false);
}
示例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();
}
示例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();
}
示例12: OnActivateOrDeactivateApp
void Scrubber::OnActivateOrDeactivateApp(wxActivateEvent &event)
{
if (event.GetActive())
mScrubHasFocus = IsScrubbing();
else
mScrubHasFocus = false;
event.Skip();
}
示例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();
}
示例14: OnActivateOrDeactivateApp
void Scrubber::OnActivateOrDeactivateApp(wxActivateEvent &event)
{
if (event.GetActive())
Pause(!IsScrubbing() || mProject->GetControlToolBar()->IsPauseDown());
else
Pause(true);
event.Skip();
}
示例15: OnActivateApp
void CBOINCGUIApp::OnActivateApp(wxActivateEvent& event) {
if (event.GetActive()) {
if (m_pEventLog && !m_pEventLog->IsIconized()) {
m_pEventLog->Raise();
}
m_pFrame->Raise();
}
event.Skip();
}