mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-14 19:49:33 +00:00
Shows message when an invalid value is returned.
This commit is contained in:
parent
c4f91eaab5
commit
9671aec7fe
1 changed files with 11 additions and 0 deletions
|
@ -1782,6 +1782,17 @@ SUB __UI_BeforeUpdateDisplay
|
|||
Control(ContextMenuControlsList).Value = 1
|
||||
END IF
|
||||
|
||||
STATIC ShowInvalidValueWarning AS _BYTE
|
||||
IF Control(__UI_Focus).BorderColor = ShadeOfRed THEN
|
||||
IF ShowInvalidValueWarning = False THEN
|
||||
ShowInvalidValueWarning = True
|
||||
Caption(StatusBar) = "Invalid value; ESC for previous or adjusted value"
|
||||
BlinkStatusBar = TIMER
|
||||
END IF
|
||||
ELSE
|
||||
ShowInvalidValueWarning = False
|
||||
END IF
|
||||
|
||||
'Disable properties that don't apply
|
||||
Control(AlignOptions).Disabled = True
|
||||
Control(BooleanOptions).Disabled = True
|
||||
|
|
Loading…
Reference in a new issue