Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] press ^ twice
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] press ^ twice

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] press ^ twice
    Posted: 02 July 2010 at 10:51am
Hello,

after press ^ twice, there is a wrong handling in the report control.
Because you receive 2 char ^ to the report control.
after the first it open the editor and send ^ to it. Ok.
after receive the second. it close the exist editor and create a new one.
same problem with other 2 keypress char's.

it fired a OnEditChanged and this is not ok.

Any solution for this ?

  jimmy
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2010 at 8:07am
Hmm, you're saying that OnEditChanged is triggered before the character pops up? This reminds me of typing a dead key in the VC editor (yielding a token error that you can't see). Considering that, I would argue that a dead key is indeed a valid "edit changed" event.
 
 
http://msdn.microsoft.com/en-us/library/ms646267(VS.85).aspx#_win32_Dead_Character_Messages
PokerMemento - http://www.pokermemento.com/
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2010 at 10:16am
Hi,

I think the problem is, that windows send this 2 char to the report windows, and not only the first.
My workaround is, that i catch WM_CHAR and check if the inplace is open. and this work for me.

  Jimmy


Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2010 at 4:22pm
You can reproduce this with Notepad. Press ^ once and you see'll nothing, press it again and you have two ^^.

Codejock support
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2010 at 5:53pm
Yes , i known.
But in Report Control it open the inplace editor, close it, and open a new inplace editor.
you see only one ^ char.
but the greatest problem is, that OnEditChanged is fired.

  Jimmy

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2011 at 12:04pm
Codejock support
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.234 seconds.