Page 1 of 1

TAB Description hidden in VLF-ONE

Posted: Fri Apr 06, 2018 10:40 pm
by Balaji
Hi,

Tab descriptions gets hidden when is the character less than 6 and grater than 3 in VLF-ONE.
Please refer to the attached screen shot,can you let us know how to proceed.

Thanks for your help in advance.

Regards
Balaji

Re: TAB Description hidden in VLF-ONE

Posted: Sat Apr 07, 2018 2:49 am
by atostaine
Pad with spaces? If they are ignored. You could probably add an invisible character with asunicode intrinsic

Re: TAB Description hidden in VLF-ONE

Posted: Sat Apr 07, 2018 10:49 am
by MarkD
The widths that are used are soft and defined as part of the theme you are using, so they can be overridden or refined.

I think from other posts I have seen that you are using a single overridden theme?
i.e. You have a VF_AC033O extended theme customiser you run at start up time to set up your custom theme.

Could you post the code you use to do that?

Re: TAB Description hidden in VLF-ONE

Posted: Mon Apr 09, 2018 5:04 pm
by Balaji
Yes I have created new theme.
kindly see the below code for the new theme.


Begin_Com Role(*EXTENDS #VF_AC033O)

Mthroutine Name(Customize) Options(*REDEFINE)
Define_Com Class(#VF_SY170O) Name(#NewTheme) Reference(*DYNAMIC)

#Themes.RemoveAll

#STD_TEXTS := "blue"

#NewTheme <= *New #VF_SY170O

#Themes.Insert Item(#NewTheme)

Set Com(#NewTheme) Symbolicname(THEME) Description('Default') Vlwebapplicationtheme(2015Blue)

#NewTheme.PopUpMenu_ItemWidth := 300
#NewTheme.BaseTitleStyle.NormBackColor := #STD_TEXTS
#NewTheme.FloatingPanel_AtFrontTitleStyle.NormBackColor := #STD_TEXTS
#NewTheme.FloatingPanel_AtFrontBorderBrush.Color := #STD_TEXTS

#NewTheme.NavigationMenu_ItemHeight := 110
#NewTheme.NavigationMenu_ItemWidth := 125
#NewTheme.NavigationMenu_MinimumWidth := 800
#NewTheme.NavigationMenu_ItemsPerLine := 6

Endroutine
End_Com

Re: TAB Description hidden in VLF-ONE

Posted: Tue Apr 10, 2018 1:49 pm
by MarkD
Please try this - which I have not tested.

Create a reusable part that extends VF_SY170O

Code: Select all

Begin_Com Role(*EXTENDS #VF_SY170O)
Mthroutine Name(ApplyDeepOverides)
#PIXELWIDTHS<1>.Value := 54
Endroutine
End_Com
That should increase the pixel with for things <= 5 characters to be 54.

In your style set up code posted code change
Define_Com Class(XXXXXXXX) Name(#NewTheme) Reference(*DYNAMIC)
And
#NewTheme <= *New XXXXXXXX
to refer to your new reusable part instead

And then just before the endroutine:

Invoke #NewTheme.ApplyDeepOverride

Alternatively, wait for the imminent release of the VLF version EPC142005 where we have changed this initial setting to use 44px for 3 chars or less and 54 for 5 chars - whicn also means you need to change this reusable part again to match.