Exemplo n.º 1
0
WinFrame::WinFrame(const wxString& title, const wxPoint& pos, const wxSize& size) :
    wxFrame( nullptr, wxID_ANY, title, pos, size, GetStyle() )
{
#ifdef AC_MULTI_THREADED
    computing_ = false;
#endif

#ifdef _WINDOWS
    SetIcon(wxICON(app_icon));
#endif

    Ac::SetFloatPrecision(50);

    /* Create window layout */
    CreateStatBar();
    CreateFont();
    CreateInputCtrl();
    CreateOutputCtrl();
    CreateMenuItems();

    SetMinClientSize(wxSize(300, 100));

    Bind(wxEVT_CLOSE_WINDOW, &WinFrame::OnClose, this);
    Bind(wxEVT_SIZE, &WinFrame::OnResize, this);

    Centre();

    ShowIntro();

    LoadConfig(configFilename);
}
Exemplo n.º 2
0
DataViewCtrlHeaderMenu::DataViewCtrlHeaderMenu(wxDataViewCtrl* parent, int column) : wxMenu(){
	parentDataView = parent;
	columnIndex = column;

	CreateMenuItems();

	ConnectEvents();
}