mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 11:59:34 +00:00
Tweaks UiEditor handling of List/DropdownList controls.
This commit is contained in:
parent
68a3014268
commit
8bc607af44
1 changed files with 2 additions and 2 deletions
|
@ -1163,7 +1163,7 @@ SUB __UI_BeforeUpdateDisplay
|
|||
ELSEIF __UI_Focus = TextTB THEN
|
||||
Control(TextTB).NumericOnly = PreviewControls(FirstSelected).NumericOnly
|
||||
IF PropertyFullySelected(TextTB) THEN
|
||||
IF ((PreviewControls(FirstSelected).Type = __UI_Type_ListBox OR PreviewControls(FirstSelected).Type = __UI_Type_DropdownList) AND Text(TextTB) = Replace(PreviewCaptions(FirstSelected), CHR$(10), "\n", False, 0)) OR _
|
||||
IF ((PreviewControls(FirstSelected).Type = __UI_Type_ListBox OR PreviewControls(FirstSelected).Type = __UI_Type_DropdownList) AND Text(TextTB) = Replace(PreviewTexts(FirstSelected), CHR$(13), "\n", False, 0)) OR _
|
||||
((PreviewControls(FirstSelected).Type <> __UI_Type_ListBox AND PreviewControls(FirstSelected).Type <> __UI_Type_DropdownList) AND Text(TextTB) = PreviewTexts(FirstSelected)) THEN
|
||||
Control(__UI_Focus).BorderColor = ShadeOfGreen
|
||||
ELSE
|
||||
|
@ -1586,7 +1586,7 @@ SUB __UI_BeforeUpdateDisplay
|
|||
Control(Transparent).Disabled = False
|
||||
FOR i = 1 TO UBOUND(InputBox)
|
||||
SELECT CASE InputBox(i).ID
|
||||
CASE CaptionTB, MinTB, IntervalTB, PaddingTB, MaskTB, AlignOptions, VAlignOptions, MinIntervalTB
|
||||
CASE CaptionTB, MinTB, MaxTB, IntervalTB, PaddingTB, MaskTB, AlignOptions, VAlignOptions, MinIntervalTB
|
||||
Control(InputBox(i).ID).Disabled = True
|
||||
CASE ELSE
|
||||
Control(InputBox(i).ID).Disabled = False
|
||||
|
|
Loading…
Reference in a new issue