Print Page | Close Window

OnChar - CXTPPropertyGridItem

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=2970
Printed Date: 29 April 2024 at 10:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnChar - CXTPPropertyGridItem
Posted By: Kevin6
Subject: OnChar - CXTPPropertyGridItem
Date Posted: 29 September 2005 at 6:13am

HELP...

Does OnChar actually get called for CXTPPropertyGridItem???- I am having trouble making it happen.

My situation is that I have a class derived from CXTPPropertyGridItem called CMyPropertyGridItem.

I have implemented the virtual function OnChar and I expect it to be called every time I press keys in the keyboard when the PropertyGridItem has focus.

It doesn't do anything - can someone post an example of this working - OR at least confirm that its broken ?

Is there a work around?

Richard



-------------
Kevin.



Replies:
Posted By: Oleg
Date Posted: 29 September 2005 at 7:15am

Hi,

OnChar is called when _View_ is focused and user press key. You must override CXTPPropertyGridInplaceEdit to catch its WM_CHAR.

See our sample for custom CXTPPropertyGridInplaceEdit



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Kevin6
Date Posted: 29 September 2005 at 8:45am

Thank you Oleg - you are very helpful.

Richard



-------------
Kevin.



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