![]() |
how do i know if the user is editing an event? |
Post Reply
|
| Author | |
prico
Newbie
Joined: 21 May 2009 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: how do i know if the user is editing an event?Posted: 21 May 2009 at 11:18am |
|
hi people.
how do i know if the user is in the proccess of editing an event on the calendar. i want to catch the esc key my form uses esc to close so i want to know if the user just presses esc to end editing of the event. if thats the case then i do not have to close the form. thanx |
|
![]() |
|
mdoubson
Senior Member
Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2009 at 12:19am |
|
In MFC there is public function in CXTPCalendarView class
virtual BOOL IsEditingSubject()
which give the answer of your question. I am not sure it exposed to Activex but this is easy.
But Esc as accelerator to close the form is not safe by many reasons - it good only for most simple cases e.g. MsgBox.
Even simple standard windows Calc app not closed by Esc
|
|
![]() |
|
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 |