Print Page | Close Window

CXTPPropertyGridItemEnum: Mouse wheel behavior

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=23680
Printed Date: 23 November 2024 at 10:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridItemEnum: Mouse wheel behavior
Posted By: farr02
Subject: CXTPPropertyGridItemEnum: Mouse wheel behavior
Date Posted: 16 July 2018 at 9:42am
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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net