1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 11:59:34 +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$ PUT #FileToLoad, 1, a$
CLOSE #FileToLoad CLOSE #FileToLoad
__UI_DefaultButtonID = 0
_SCREENSHOW _SCREENSHOW
IF INSTR(a$, "SUB __UI_LoadForm") > 0 THEN IF INSTR(a$, "SUB __UI_LoadForm") > 0 THEN
LoadPreviewText LoadPreviewText
@ -438,6 +439,7 @@ SUB __UI_BeforeUpdateDisplay
LastPreviewDataSent$ = "" LastPreviewDataSent$ = ""
UndoPointer = 0 UndoPointer = 0
TotalUndoImages = 0 TotalUndoImages = 0
__UI_DefaultButtonID = 0
_ICON _ICON
SendSignal -7 'New form created SendSignal -7 'New form created
ELSEIF TempValue = -6 THEN ELSEIF TempValue = -6 THEN