1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 03:49:56 +00:00

Properly reset __UI_DefaultButtonID when loading or creating new form.

This commit is contained in:
FellippeHeitor 2018-06-11 00:14:46 -03:00
parent 544360170b
commit bc1ff1b248

View file

@ -413,6 +413,7 @@ SUB __UI_BeforeUpdateDisplay
PUT #FileToLoad, 1, a$
CLOSE #FileToLoad
__UI_DefaultButtonID = 0
_SCREENSHOW
IF INSTR(a$, "SUB __UI_LoadForm") > 0 THEN
LoadPreviewText
@ -438,6 +439,7 @@ SUB __UI_BeforeUpdateDisplay
LastPreviewDataSent$ = ""
UndoPointer = 0
TotalUndoImages = 0
__UI_DefaultButtonID = 0
_ICON
SendSignal -7 'New form created
ELSEIF TempValue = -6 THEN