Print Page | Close Window

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

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=14361
Printed Date: 06 October 2024 at 9:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how do i know if the user is editing an event?
Posted By: prico
Subject: how do i know if the user is editing an event?
Date 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



Replies:
Posted By: mdoubson
Date 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


-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net