这篇教程C++ wxTimerEventHandler函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中wxTimerEventHandler函数的典型用法代码示例。如果您正苦于以下问题:C++ wxTimerEventHandler函数的具体用法?C++ wxTimerEventHandler怎么用?C++ wxTimerEventHandler使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了wxTimerEventHandler函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: clDebuggerTipWindowBaseDisplayVariableDlg::DisplayVariableDlg( wxWindow* parent) : clDebuggerTipWindowBase( parent ) , m_debugger(NULL) , m_keepCurrentPosition(false) , m_dragging(false) , m_editDlgIsUp(false){ Hide(); Centre(); MSWSetNativeTheme(m_treeCtrl); m_timer2 = new wxTimer(this); m_mousePosTimer = new wxTimer(this); SetName("clDebuggerEditItemDlgBase"); bool sizeSet(false); if (!wxPersistenceManager::Get().Find(this)) { sizeSet = wxPersistentRegisterAndRestore(this, "CLDebuggerTip"); } wxUnusedVar(sizeSet); if (GetSize().x < 100 || GetSize().y < 100 ) { SetSize( wxRect(GetPosition(), wxSize(100, 100) ) ); } Connect(m_timer2->GetId(), wxEVT_TIMER, wxTimerEventHandler(DisplayVariableDlg::OnTimer2), NULL, this); Connect(m_mousePosTimer->GetId(), wxEVT_TIMER, wxTimerEventHandler(DisplayVariableDlg::OnCheckMousePosTimer), NULL, this); m_panelStatusBar->Connect(wxEVT_MOUSE_CAPTURE_LOST, wxMouseCaptureLostEventHandler(DisplayVariableDlg::OnCaptureLost), NULL, this);}
开发者ID:292388900,项目名称:codelite,代码行数:28,
示例2: Disconnectvoid Parser::DisconnectEvents(){ Disconnect(m_Pool.GetId(), cbEVT_THREADTASK_ALLDONE, (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&Parser::OnAllThreadsDone); Disconnect(m_ReparseTimer.GetId(), wxEVT_TIMER, wxTimerEventHandler(Parser::OnReparseTimer)); Disconnect(m_BatchTimer.GetId(), wxEVT_TIMER, wxTimerEventHandler(Parser::OnBatchTimer));}
开发者ID:Three-DS,项目名称:codeblocks-13.12,代码行数:7,
示例3: m_AutocompPosition// class constructorCCManager::CCManager() : m_AutocompPosition(wxSCI_INVALID_POSITION), m_CallTipActive(wxSCI_INVALID_POSITION), m_LastAutocompIndex(wxNOT_FOUND), m_LastTipPos(wxSCI_INVALID_POSITION), m_WindowBound(0), m_OwnsAutocomp(true), m_CallTipTimer(this, idCallTipTimer), m_AutoLaunchTimer(this, idAutoLaunchTimer), m_AutocompSelectTimer(this, idAutocompSelectTimer),#ifdef __WXMSW__ m_pAutocompPopup(nullptr),#endif // __WXMSW__ m_pLastEditor(nullptr), m_pLastCCPlugin(nullptr){ const wxString ctChars = wxT(",;/n()"); // default set m_CallTipChars[nullptr] = std::set<wxChar>(ctChars.begin(), ctChars.end()); const wxString alChars = wxT(".:<>/"#/"); // default set m_AutoLaunchChars[nullptr] = std::set<wxChar>(alChars.begin(), alChars.end()); m_LastACLaunchState[lsCaretStart] = wxSCI_INVALID_POSITION; m_pPopup = new UnfocusablePopupWindow(Manager::Get()->GetAppFrame()); m_pHtml = new wxHtmlWindow(m_pPopup, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO | wxBORDER_SIMPLE); int sizes[7] = {}; CCManagerHelper::BuildFontSizes(sizes, CCManagerHelper::GetDefaultHTMLFontSize()); m_pHtml->SetFonts(wxEmptyString, wxEmptyString, &sizes[0]); m_pHtml->Connect(wxEVT_COMMAND_HTML_LINK_CLICKED, wxHtmlLinkEventHandler(CCManager::OnHtmlLink), nullptr, this);// wxFrame* mainFrame = Manager::Get()->GetAppFrame();// wxMenuBar* menuBar = mainFrame->GetMenuBar();// if (menuBar)// {// int idx = menuBar->FindMenu(wxT("&Edit"));// wxMenu* edMenu = menuBar->GetMenu(idx < 0 ? 0 : idx);// edMenu->Append(idCallTipNext, _("Next call tip/tCtrl-N"));// edMenu->Append(idCallTipPrevious, _("Previous call tip/tCtrl-P"));// }// mainFrame->Connect(idCallTipNext, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(CCManager::OnMenuSelect), nullptr, this);// mainFrame->Connect(idCallTipPrevious, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(CCManager::OnMenuSelect), nullptr, this); typedef cbEventFunctor<CCManager, CodeBlocksEvent> CCEvent; Manager::Get()->RegisterEventSink(cbEVT_APP_DEACTIVATED, new CCEvent(this, &CCManager::OnDeactivateApp)); Manager::Get()->RegisterEventSink(cbEVT_EDITOR_DEACTIVATED, new CCEvent(this, &CCManager::OnDeactivateEd)); Manager::Get()->RegisterEventSink(cbEVT_EDITOR_OPEN, new CCEvent(this, &CCManager::OnEditorOpen)); Manager::Get()->RegisterEventSink(cbEVT_EDITOR_CLOSE, new CCEvent(this, &CCManager::OnEditorClose)); Manager::Get()->RegisterEventSink(cbEVT_EDITOR_TOOLTIP, new CCEvent(this, &CCManager::OnEditorTooltip)); Manager::Get()->RegisterEventSink(cbEVT_SHOW_CALL_TIP, new CCEvent(this, &CCManager::OnShowCallTip)); Manager::Get()->RegisterEventSink(cbEVT_COMPLETE_CODE, new CCEvent(this, &CCManager::OnCompleteCode)); m_EditorHookID = EditorHooks::RegisterHook(new EditorHooks::HookFunctor<CCManager>(this, &CCManager::OnEditorHook)); Connect(idCallTipTimer, wxEVT_TIMER, wxTimerEventHandler(CCManager::OnTimer)); Connect(idAutoLaunchTimer, wxEVT_TIMER, wxTimerEventHandler(CCManager::OnTimer)); Connect(idAutocompSelectTimer, wxEVT_TIMER, wxTimerEventHandler(CCManager::OnTimer)); Connect(cbEVT_DEFERRED_CALLTIP_CANCEL, wxCommandEventHandler(CCManager::OnDeferredCallTipCancel));}
开发者ID:simple-codeblocks,项目名称:Codeblocks,代码行数:57,
示例4: Connect void RenderCanvas::Activate( bool active ) { if ( active ) { m_UpdateTimer.Start( 10 ); // init start ticks m_CurrentTicks = m_RenderManager->GetRenderProfile()->GetTicks(); Connect(wxEVT_PAINT, wxPaintEventHandler(RenderCanvas::OnPaint)); Connect(wxEVT_TIMER, wxTimerEventHandler(RenderCanvas::OnRedrawTimer)); } else { m_UpdateTimer.Stop(); Disconnect(wxEVT_PAINT, wxPaintEventHandler(RenderCanvas::OnPaint)); Disconnect(wxEVT_TIMER, wxTimerEventHandler(RenderCanvas::OnRedrawTimer)); } }
开发者ID:juergen0815,项目名称:PEngIneLite,代码行数:14,
示例5: wxPanel// 1 : 1 : 1// +---------------------------------+// | +-----------------------------+ |// | | +--+ +--+ +--+ +--+ | |// | | | | | | o | | | | | |// | | +--+ +--+ +--+ +--+ | | 3// | | | | | | o | | | | | |// | | +--+ +--+ +--+ +--+ | |// | +-----------------------------+ | :// | |// | shot clock period | 1// | +-----------+ +------+ |// | | +--+ +--+ | / | +--+ | | :// | | | | | | | ---/ | | | | |// | | +--+ +--+ | ---/ | +--+ | |// | | | | | | | / | | | | | 2// | | +--+ +--+ | | +--+ | |// | +-----------+ +------+ |// +---------------------------------+// wxGamePanel::wxGamePanel(wxWindow* parent) : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_RAISED) , m_timer(this, ID_CLOCK_TIMER) , m_playing(false) , m_buzzerTimer(this, ID_BUZZER_TIMER) , m_buzzing(false){ wxBoxSizer *bgBox = new wxBoxSizer(wxVERTICAL); // C++ wxTreeItemId函数代码示例 C++ wxTimeSpan函数代码示例
|