Posted by Grant Foraker on May 03, 2010 at 12:41:55:
Same program. Figured that is nothing else worked on the screen, CANCEL would. Bad assumption.
Using Howto9 as a model, EventHandler starts with four event checks ...
1) Page Event
2) Tab Event
3) Initializing
4) Closing
followed by the Select Case for the buttons.
Clicking Exit triggers an IDCANCEL event which is properly parsed and the "CW.Close ..." routine is executed. A full "EventSub" is set and the program sits at EventWait.
Quickly, an event is received with a cosCtlId = -1. The TD.IsPageEvent (#1) is executed and gives a cosState = 1. This causes PageEventHandler to be executed and then a GOTO ContinueEvents.
The Closing test (#4) isn't executed and CW.ExitEvents doesn't get set and the dialog doesn't close.
I need a new model, Howto9 isn't working for me. Can anyone post a simple (2-3 tab) program that uses CometWin.Inc?
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.