int OnIconsChanged(WPARAM wParam, LPARAM lParam) { GetIcons(); UpdateMenuItems(); return 0; }
void vtkFrame::OpenCSVFile(wxCommandEvent& event) { wxFileDialog dialog(this, _T("Choose a CSV file to open"), _T(""),_T(""),_T("*.*"), wxFD_OPEN | wxFD_FILE_MUST_EXIST); if (dialog.ShowModal() == wxID_OK) { fileInfoDialog infoDialog(this); if ( infoDialog.ShowModal() == wxID_OK ) { showProgressDialog("Processing CSV File"); *ds = new Dataset( (const char*)dialog.GetPath().mb_str(wxConvUTF8), infoDialog.dims, infoDialog.steps, this ); clearProgressDialog(); UpdateSliderLimits(); vtkRenderWindow->SetDataset(*ds); UpdateMenuItems(); } } }
void vtkFrame::OpenRawFile(wxCommandEvent& event) { wxFileDialog dialog(this, _T("Choose a RAW file to open"), _T(""),_T(""),_T("EBSD Raw files (*.ebsd)|*.ebsd"), wxFD_OPEN || wxFD_FILE_MUST_EXIST); if (dialog.ShowModal() == wxID_OK) { *ds = new Dataset( (const char*)dialog.GetPath().mb_str(wxConvUTF8), this ); UpdateSliderLimits(); vtkRenderWindow->SetDataset(*ds); UpdateMenuItems(); } }
extern void InitMenuItems(void) { CLISTMENUITEM mi; ZeroMemory(&mi, sizeof(mi)); mi.cbSize = sizeof(mi); // mi.flags = CMIF_ICONFROMICOLIB; if (PopupActive) { //Disable/Enable status message change notification mi.position = 0; // mi.icolibItem = ICO_POPUP_E; mi.pszPopupName = Translate("PopUps"); mi.pszService = MS_SMCNOTIFY_POPUPS; hmPopups = CallService(MS_CLIST_ADDMAINMENUITEM, 0, (LPARAM)&mi); mi.ptszPopupName = NULL; } mi.flags = CMIF_TCHAR | CMIF_ICONFROMICOLIB; //List Contacts with Status Message - main menu mi.position = 500021000; mi.icolibItem = ICO_LIST; mi.ptszName = TranslateT("List Contacts with Status Message"); mi.pszService = MS_SMCNOTIFY_LIST; hmShowList = CallService(MS_CLIST_ADDMAINMENUITEM, 0, (LPARAM)&mi); mi.pszContactOwner = NULL; //Go To URL in Status Message - contact menu mi.position = -2000004000; mi.icolibItem = ICO_URL; mi.ptszName = TranslateT("Go To URL in Status Message"); mi.pszService = MS_SMCNOTIFY_GOTOURL; hmGoToURL = CallService(MS_CLIST_ADDCONTACTMENUITEM, 0, (LPARAM)&mi); UpdateMenuItems(puopts.bEnable); return; }
int MenuItemCmd_PopUps(WPARAM wParam, LPARAM lParam) { UpdateMenuItems(wParam ? lParam : !puopts.bEnable); return 0; }
void Screen_Base::OnResized() { UpdateMenuItems( false ); }
void Screen_Base::OnDisplay() { UpdateMenuItems( false ); }