![]() |
VK_F5 behavior CXTPReportInplaceEdit::OnKeyDown |
Post Reply ![]() |
Author | |
franji1 ![]() Groupie ![]() ![]() Joined: 28 June 2005 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() Posted: 22 April 2022 at 9:26am |
XTP V13.2.1
I am chaining back my calls to OnKeyDown when I am not processing them. The tookit behavior process the F5 key from within my edit control of an item to call the report control's Recalc method: _pControl->Recalc(TRUE); which immediately calls EditItem(NULL), which currently deletes my edit control. Hence, when I return back, my edit control is GONE - window handles are 0xdddddddd, etc. So MY code ends up crashing (asserting) because my object thinks it's still around (which it is not because of the call to EditItem(NULL)). What is the expected behavior of F5 when editing an item in a report control? I search the source code for VK_F5 within the entire XTP toolkit (not just Report Control), and the only mention is the processing above. There is NO DOCUMENTATION ABOUT THIS (expected?) BEHAVIOR. Does that mean that my derived class(es) must process the VK_F5 key? Or never chain back if VK_F5? Or ??? What do other apps do? (examples have no special processing).
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |