LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change hover color on menu bar.

Hello everyone, i hope you are doing great,

 

So i today i have a new problem, i would like to modify the default color of the menu bar for my application. So far i have managed to modify the menu bar color to black, to do that i build an excecutable and added 4 keys (menu.background, menubar.background, etc.) to an /ini file.

 

Now i wold like to modify the color of the menu element when the cursor is on the top of the element (hovering). I have found that 2 keys to add to my ini file (cursor.background and
cursor.foreground) in order to do that i want, but it does not do any effect on my application, maybe is the syntax i use in the .ini file, can  someone please tell me whet i'm doing wrong?

 

Here is my ini file : 

 

[ColorCustomTopBar]
server.app.propertiesEnabled=True
server.ole.enabled=True
server.tcp.paranoid=True
server.tcp.serviceName="WorkStation/VI Serveur"
server.vi.callsEnabled=True
server.vi.propertiesEnabled=True
WebServer.TcpAccess="c+*"
WebServer.ViAccess="+*"
DebugServerEnabled=False
DebugServerWaitOnLaunch=False
cursor.background = "000000"
cursor.foreground = "000000"
menu.background = "0000000"
menu.foreground = "FFFFFF"
menubar.background = "0000000"
menubar.foreground = "FFFFFF"

 

You can find my project down below, the .ini file is located in the "Build" folder. You just have to run the executable and change the keys in the ini file.

 

 

Thanks.

 

Luis.

0 Kudos
Message 1 of 5
(1,533 Views)

Hello,

 

I didn't understand if you want to modify the color of the selected element or the selected menu.

 

Is there an example of how to Programmatically Modify Stand-Alone Executable's Menu and Menubar Colors

 

Have a nice day

 

Kevin

TSE NI

Message 2 of 5
(1,438 Views)

Thanks for your repply Kevin,

 

To color my menus i already took the idea from the link that you sent me.

 

To be more specific i wnat to change de color of this ....

Because is blue by default i wante to make it gray or black.

This.PNG

 

 

0 Kudos
Message 3 of 5
(1,422 Views)

Looking at that green and red, I only have one question for you.

 

Why do you hate your users?

Message 4 of 5
(1,411 Views)

Hahaha, i don't thats why i want to know how to modify that. That is an NI example. I want to change it to gray/black

0 Kudos
Message 5 of 5
(1,408 Views)