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.