From fa61300e10f7d4c5fa81aea7a8b9fe1882b28d0c Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Fri, 24 Aug 2018 01:53:44 -0300 Subject: [PATCH] Properly sets ProgressBar captions at creation time. Using \# in the caption has InForm insert the actual percentage. This commit makes it easier for a user to notice that. --- InForm/UiEditorPreview.bas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InForm/UiEditorPreview.bas b/InForm/UiEditorPreview.bas index 9881260..560c9a5 100644 --- a/InForm/UiEditorPreview.bas +++ b/InForm/UiEditorPreview.bas @@ -260,6 +260,8 @@ SUB __UI_BeforeUpdateDisplay Control(TempValue).AutoSize = True CASE __UI_Type_ListBox Control(TempValue).HasBorder = True + CASE __UI_Type_ProgressBar + SetCaption TempValue, "\#" END SELECT IF __UI_ActiveMenu > 0 AND (Control(TempValue).Type <> __UI_Type_MenuBar AND Control(TempValue).Type <> __UI_Type_MenuItem) THEN