Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - how do i know if the user is editing an event?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how do i know if the user is editing an event?

 Post Reply Post Reply
Author
Message
prico View Drop Down
Newbie
Newbie


Joined: 21 May 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote prico Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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
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.125 seconds.