[commit] r1249 - trunk/GME/MgaUtil
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Apr 5 10:02:59 CDT 2011
Author: ksmyth
Date: Tue Apr 5 10:02:58 2011
New Revision: 1249
Log:
Set OK button name better. Highlight OK button when enabled; good for File>Open>"Could not find paradigm..." so the user knows to hit "Open"(IDOK)
Modified:
trunk/GME/MgaUtil/MetaDlg.cpp
Modified: trunk/GME/MgaUtil/MetaDlg.cpp
==============================================================================
--- trunk/GME/MgaUtil/MetaDlg.cpp Mon Apr 4 12:42:45 2011 (r1248)
+++ trunk/GME/MgaUtil/MetaDlg.cpp Tue Apr 5 10:02:58 2011 (r1249)
@@ -70,8 +70,12 @@
ASSERT( registrar != NULL );
- if(flags == METADLG_PARREG) {
- GetDlgItem(IDOK)->SetWindowText(_T("Components..."));
+ if (flags == METADLG_PARREG) {
+ GetDlgItem(IDOK)->SetWindowText(_T("Components..."));
+ } else if (flags == METADLG_NONE) {
+ GetDlgItem(IDOK)->SetWindowText(_T("Open"));
+ } else if (flags == METADLG_NEWFILE) {
+ GetDlgItem(IDOK)->SetWindowText(_T("Create New"));
}
{
@@ -343,6 +347,8 @@
GetDlgItem(IDOK)->EnableWindow(pos != NULL);
m_purge.EnableWindow(pos != NULL);
to_select = pos ? m_list.GetItemText(m_list.GetNextSelectedItem(pos),0) : _T("");
+ if (pos != NULL)
+ ::SendMessage(GetDlgItem(IDOK)->GetSafeHwnd(), BM_SETSTATE, BST_PUSHED, 0);
return TRUE;
}
else if( wParam == IDC_LIST && ((NMHDR*)lParam)->code == NM_DBLCLK )
More information about the gme-commit
mailing list