Navigation Menu Header color (VLF-ONE)

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Balaji
Posts: 20
Joined: Tue Sep 19, 2017 6:05 pm

Navigation Menu Header color (VLF-ONE)

Post 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
Attachments
Navigation Menu Header color.PNG
Navigation Menu Header color.PNG (4.51 KiB) Viewed 8458 times
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Navigation Menu Header color (VLF-ONE)

Post 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 8455 times
Capture2.PNG
Capture2.PNG (7.42 KiB) Viewed 8455 times
Balaji
Posts: 20
Joined: Tue Sep 19, 2017 6:05 pm

Re: Navigation Menu Header color (VLF-ONE)

Post 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.
Attachments
Untitled.png
Untitled.png (8.93 KiB) Viewed 8426 times
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Navigation Menu Header color (VLF-ONE)

Post 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?
Balaji
Posts: 20
Joined: Tue Sep 19, 2017 6:05 pm

Re: Navigation Menu Header color (VLF-ONE)

Post by Balaji »

Now I am able to change the color .Thank you jyoung :)
Post Reply