?? editctrl.cpp
字號:
#include "EditCtrl.h"BEGIN_EVENT_TABLE(EditCtrl, wxTextCtrl) EVT_SET_FOCUS(EditCtrl::OnFocusSet) EVT_KILL_FOCUS(EditCtrl::OnFocusKill)END_EVENT_TABLE()EditCtrl::EditCtrl(wxWindow *parent, wxWindowID id, const wxString& value, const wxPoint& point, const wxSize& size, long style) : wxTextCtrl(parent, id,value,point,size,style){}void EditCtrl::OnFocusSet(wxFocusEvent& event){ wxWindow* pp = event.GetWindow(); if(pp != NULL) { long i = pp->GetId();// printf("Set%ld\n",i); }}void EditCtrl::OnFocusKill(wxFocusEvent& event){ wxWindow* pp = event.GetWindow(); if(pp != NULL) { long i = pp->GetId();// printf("Kill%ld\n",i); }}EditCtrl::~EditCtrl(){}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -