Differerent results with Debugger on


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

Posted by Grant Foraker on January 20, 2006 at 14:48:51: Uploaded files: 2

All the latest.

Program is a clone of HowTo8.

The EventHandler contains, in part, the following ...

case IDC.READ;IDC.PREV;IDC.NEXT;ID.OK

Gosub App.Read
If (cosState EQ TRUE)

cosCtlID = IDC.READ
cosState = cosEW.DISABLE
Gosub COS.EnableDlgItem

cosCtlID = IDC.ADD
cosState = cosEW.DISABLE
Gosub COS.EnableDlgItem

cosCtlID = IDC.CUSTNUM
cosState = cosEW.DISABLE
Gosub COS.EnableDlgItem

After a sucessful record read the three controls should be disabled. I noticed that IDC.CUSTNUM disabled when NEXT, PREV, and OK were used. But on a READ click it wasn't. Set attached enabled JPG.

So I fired up the debugger. With the Debugger on the IDC.CUSTNUM properly disables on a READ click. See attached disabled JPG.

I've toggled Debugger On and Off with the program running and the results are consistent. Off - disable gets "lost". On - disable works.

I added the AutoMetaFile=2 command into ContinueEvents ahead of the EventSub. Made no difference. Also put it right after the third
Gosub COS.EnableDlgItem. No difference.


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):






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