[cmake-commits] hoffman committed PropertyList.cpp 1.29 1.30
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Oct 3 12:21:14 EDT 2006
Update of /cvsroot/CMake/CMake/Source/MFCDialog
In directory public:/mounts/ram/cvs-serv2910
Modified Files:
PropertyList.cpp
Log Message:
ENH: allow edit of file text directly
Index: PropertyList.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/MFCDialog/PropertyList.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- PropertyList.cpp 13 Jan 2005 17:26:13 -0000 1.29
+++ PropertyList.cpp 3 Oct 2006 16:21:11 -0000 1.30
@@ -332,7 +332,31 @@
}
else
+ {
DisplayButton(rect);
+ m_nLastBox = 1;
+ m_prevSel = m_curSel;
+ rect.bottom -= 3;
+ rect.right -= 25;
+ if (m_editBox)
+ {
+ m_editBox.MoveWindow(rect);
+ }
+ else
+ {
+ m_editBox.Create(ES_LEFT | ES_AUTOHSCROLL | WS_VISIBLE
+ | WS_CHILD | WS_BORDER,
+ rect,this,IDC_PROPEDITBOX);
+ m_editBox.SetFont(&m_SSerif8Font);
+ }
+
+ lBoxSelText = pItem->m_curValue;
+
+ m_editBox.ShowWindow(SW_SHOW);
+ m_editBox.SetFocus();
+ //set the text in the edit box to the property's current value
+ m_editBox.SetWindowText(lBoxSelText);
+ }
}
void CPropertyList::DisplayButton(CRect region)
More information about the Cmake-commits
mailing list