NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: Opagust on 2021-03-01 10:37 am

Title: Where are the colors from Tools/Options/Color Tab stored?
Post by: Opagust on 2021-03-01 10:37 am
Hello,
Via 'Tools/Options/Color Tab' you can change the colors. But I wonder: where are the stored?
I have written some tools where one can set the color of an object or staff, but I can't show the exact color next to the names ('Highlight 1', ...) in the dialog box.
If I knew where I could find the color values from the Tool/Options, I could present a more user friendly dialog box.
Title: Re: Where are the colors from Tools/Options/Color Tab stored?
Post by: Lawrie Pardy on 2021-03-01 10:53 am
They're in the registry:
HKEY_CURRENT_USER\Software\NoteWorthy Software\NoteWorthy Composer 2\StaffColors
Title: Re: Where are the colors from Tools/Options/Color Tab stored?
Post by: Lawrie Pardy on 2021-03-01 11:54 am
Thanks Lawrie, but I don't find a sub directory 'Software'.
I have version 2.8 Beta 1 of NWC and Windows 10, if that's important.
It's not a folder, it's a registry key.  You can manually check it out with "regedit" (part of windoze), but I have no idea how to extract data programatically.  Can't be too hard as pretty much every application written for windoze uses the registry.
Title: Re: Where are the colors from Tools/Options/Color Tab stored?
Post by: Opagust on 2021-03-01 11:58 am
OK, thanks.
Now I  just have to find out how to access the registry information in a user tool...:))
Title: Re: Where are the colors from Tools/Options/Color Tab stored?
Post by: Lawrie Pardy on 2021-03-01 01:19 pm
Don't know if these will be helpful:
https://docs.microsoft.com/en-us/windows/win32/sysinfo/retrieving-data-from-the-registry

https://stackoverflow.com/questions/34065/how-to-read-a-value-from-the-windows-registry

Title: Re: Where are the colors from Tools/Options/Color Tab stored?
Post by: Opagust on 2021-03-01 02:21 pm
THANKS!