HexEditorCtrl::HexEditorCtrl(wxWindow* parent, int id, const wxPoint& pos, const wxSize& size, long style): HexEditorCtrlGui(parent, id, pos, size, wxTAB_TRAVERSAL){ select = new class Select( GetEventHandler() ); SetAutoLayout(true); m_static_offset->SetLabel( _("Offset") ); #if defined( __WXOSX__ ) stdfont = wxFont(10, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, wxT("Monaco"), wxFONTENCODING_CP437);// Fonts are too small on wxOSX 2.9.x series. #elif defined( __WXMSW__ ) stdfont = wxFont(10, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, wxT("Courier New"), wxFONTENCODING_CP437); #else stdfont = wxFont(10, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, wxT("Monospace"), wxFONTENCODING_CP437); #endif SetFont( stdfont ); Dynamic_Connector(); offset_scroll = new wxHugeScrollBar( offset_scroll_real ); TAGMutex = false; hex_ctrl->TagMutex = &TAGMutex; text_ctrl->TagMutex = &TAGMutex; //Using hex_ctrl ZebraStriping pointer for all 3 panels. delete text_ctrl->ZebraStriping; delete offset_ctrl->ZebraStriping; ZebraStriping = hex_ctrl->ZebraStriping; text_ctrl->ZebraStriping = ZebraStriping; offset_ctrl->ZebraStriping = ZebraStriping; wxConfigBase::Get()->Read( _T("ZebraStriping"), &ZebraEnable, true); sector_size=0; }
HexEditorCtrl::HexEditorCtrl(wxWindow* parent, int id, const wxPoint& pos, const wxSize& size, long style): HexEditorCtrlGui(parent, id, pos, size, wxTAB_TRAVERSAL){ select = new class Select( GetEventHandler() ); SetAutoLayout(true); m_static_offset->SetLabel( wxString(wxT("+"))+_("Offset")+wxT("-") ); SetFont(); Dynamic_Connector(); offset_scroll = new wxHugeScrollBar( offset_scroll_real ); TAGMutex = false; hex_ctrl->TagMutex = &TAGMutex; text_ctrl->TagMutex = &TAGMutex; //Using hex_ctrl ZebraStriping pointer for all 3 panels. delete text_ctrl->ZebraStriping; delete offset_ctrl->ZebraStriping; ZebraStriping = hex_ctrl->ZebraStriping; text_ctrl->ZebraStriping = ZebraStriping; offset_ctrl->ZebraStriping = ZebraStriping; wxConfigBase::Get()->Read( _T("ZebraStriping"), &ZebraEnable, true); sector_size=0; }