10-21-2020 09:12 AM
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.
10-28-2020 03:10 AM
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
10-28-2020 08:06 AM
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.
10-28-2020 10:01 AM
Looking at that green and red, I only have one question for you.
Why do you hate your users?
10-28-2020 10:06 AM
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