Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - OnChar - CXTPPropertyGridItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnChar - CXTPPropertyGridItem

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


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post Topic: OnChar - CXTPPropertyGridItem
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Kevin6 View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2005 at 8:45am

Thank you Oleg - you are very helpful.

Richard

Kevin.
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.217 seconds.