From: boca4711 <boc...@us...> - 2004-10-17 19:14:13
|
Update of /cvsroot/anyedit/AnyEditToolkit/GuiLib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16614/GuiLib Modified Files: GuiListEdit.cpp Log Message: Mouse and key commands are disabled when buttons are invisible Index: GuiListEdit.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditToolkit/GuiLib/GuiListEdit.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GuiListEdit.cpp 13 Oct 2004 23:26:46 -0000 1.5 --- GuiListEdit.cpp 17 Oct 2004 19:14:04 -0000 1.6 *************** *** 118,123 **** int iSelItem = GetSelItem (); ! // if ((m_uiStandardBtns & BGCEDITLISTBOX_BTN_NEW) && iSelItem == -1) ! if (iSelItem == -1) { Insert(); --- 118,122 ---- int iSelItem = GetSelItem (); ! if ((m_uButtons & BtnInsert) && iSelItem == -1) { Insert(); *************** *** 313,329 **** { case VK_INSERT: ! Insert(); break; case VK_DELETE: Delete(); break; case VK_DOWN: case VK_RIGHT: ! if (::GetAsyncKeyState (VK_MENU) & 0x8000) Down(); break; case VK_UP: case VK_LEFT: ! if (::GetAsyncKeyState (VK_MENU) & 0x8000) Up(); break; --- 312,330 ---- { case VK_INSERT: ! if (m_uButtons & BtnInsert) ! Insert(); break; case VK_DELETE: + if (m_uButtons & BtnDelete) Delete(); break; case VK_DOWN: case VK_RIGHT: ! if ((m_uButtons & BtnDown) && ::GetAsyncKeyState (VK_MENU) & 0x8000) Down(); break; case VK_UP: case VK_LEFT: ! if ((m_uButtons & BtnUp) && ::GetAsyncKeyState (VK_MENU) & 0x8000) Up(); break; |