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:
parent
544360170b
commit
bc1ff1b248
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue