Page 1 of 1

Navigation Menu Header color (VLF-ONE)

Posted: Fri Feb 23, 2018 1:35 am
by Balaji
Hi,

Could you let me know property name of #VF_SY170O to change the color of Navigation Menu Header in VLF-ONE. Please refer to the attached screen shot(header color area is highlighted/marked)

I have tried this command
Set Com(#ThemeItem.NavigationMenu_FontStyle) Normbackcolor(red)
but it is not working .


Regards
Balaji

Re: Navigation Menu Header color (VLF-ONE)

Posted: Fri Feb 23, 2018 1:53 am
by jyoung
Do you have to set it through code?

You can change it in the VLF Workbench, the Object Dark and Light Backgrounds are set in the Identification tab.
capture.PNG
capture.PNG (60.4 KiB) Viewed 8454 times
Capture2.PNG
Capture2.PNG (7.42 KiB) Viewed 8454 times

Re: Navigation Menu Header color (VLF-ONE)

Posted: Fri Feb 23, 2018 11:55 pm
by Balaji
Hi jyoung,

Actually I am trying to customise the Navigation Menu and Popup menu in VLF-ONE. As part of this I want to change the color of the navigation menu and subsequent BO's and tabs. I want to do this from the code.

Re: Navigation Menu Header color (VLF-ONE)

Posted: Sat Feb 24, 2018 5:43 am
by jyoung
Apologies, I think I misunderstood what you are asking.

Changing the VLF-ONE Light/Dark Colors only change the icon background.

For standardization purposes, I force all my panel titles (blue background in Users & Authorities) to be the same color, instead of allowing the user to change them.

I use a Theme Customizer and disable all themes but blue and change the color of the BaseTitleStyle and Floating Panel Styles.

Code: Select all

mthroutine name(Customize) options(*REDEFINE)

#STD_TEXTS := "0:114:198"

for each(#theme) in(#Themes)
if (#theme.SymbolicName = BLUE)
* customize the blue theme
#theme.BaseTitleStyle.NormBackColor := #STD_TEXTS
#theme.FloatingPanel_AtFrontTitleStyle.NormBackColor := #STD_TEXTS
#theme.FloatingPanel_AtFrontBorderBrush.Color := #STD_TEXTS
else
* disable all other themes
#theme.Enabled := False
endif
endfor

endroutine
Edit
I still don't know if that will get you what you want but perhaps it points you in the right direction .... ?

You mention you are referencing #ThemeItem.NavigationMenu_FontStyle, where are you doing this?

Re: Navigation Menu Header color (VLF-ONE)

Posted: Fri Mar 09, 2018 6:41 pm
by Balaji
Now I am able to change the color .Thank you jyoung :)