Cancel an event

  • Thread starter Thread starter cyan21
  • Start date Start date
C

cyan21

hello,

Is it possible to cancel the 'close' event ?

I'd like to 'oblige' users to put a contact when creating a
appointment, so if he tries to push the 'write and close' button
without filling the contact field, the window won't close.

thanks

yann
 
Am 10 Aug 2005 08:31:12 -0700 schrieb cyan21:

Yes, it is. That´s the reason for the event´s Cancel argument.
 
However I don't know how to use it in C++. I asked it before but nobody
answer to my topic and searched documents about it on the Internet but
I didn't find anything.

I found another solution but don't know if it's possible :

1. set 'write and close' button unabled
2. check if the contact user is filled( I don't know how to do it ...)
3. if it's filled, enable the 'write and close' button
 
Am 11 Aug 2005 01:48:08 -0700 schrieb cyan21:

1) I don´t know C++.

2) AFAIK it won´t work. The user could use ALT+F4 and then submit the
upcomming dialog.
 
Back
Top