📄 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 + -