Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGridItemEnum: Mouse wheel behavior
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridItemEnum: Mouse wheel behavior

 Post Reply Post Reply
Author
Message
farr02 View Drop Down
Groupie
Groupie


Joined: 10 May 2005
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote farr02 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridItemEnum: Mouse wheel behavior
    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)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.145 seconds.