CXTPPropertyGridItemEnum has an unusual mouse wheel behavior:
1. Start the PropertyGrid.PropertyGrid.exe example (I used the one provided for download on the CodeJock homepage)
2. Left-click on the left-hand column of the "SaveOnClose" row => "SaveOnClose" becomes highlighted 3. Move (NOT CLICK) the mouse to the right-hand column of the "SaveOnClose" row => cursor changes from arrow to input 4. Just use mouse wheel to change the combobox entry from "True" to "False". Note: Do NOT click!
5. Click on the left-hand column of the "WindowFont" row => entry of the "SaveOnClose" combobox switches back from "False" to "True"
The problem arises because the combobox of the CXTPPropertyGridItemEnum does not get the focus when just using the mouse wheel to change the current entry. Clicking into the right-hand column sets the focus and everything is fine.
My solution was to manaually change function BOOL CXTPPropertyGridInplaceEdit::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt) and add an explicit SetFocus() to the inplace element (cf. void CXTPPropertyGridItem::SetFocusToInplaceControl()) but maybe there is a better way.
Best regards, Holger
BTW: Currently I don't see my signature, so here is the necessary information about my toolkit version:
Product: Xtreme Toolkit Pro versions 16.3.1, 18.4.0 Platform: Windows 10 (64 Bit) Language: Visual C++ 12.0 (Visual Studio 2013)
------------- Product: Xtreme Toolkit Pro version 16.3.1, 18.4.0
Platform: Windows 10 (64 Bit)
Language: Visual C++ 15.0 (Visual Studio 2017)
|