TAB Control question 2


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

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?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]