08-21-2009 10:10 AM
Is there any way to add a color to the History (see screenshot)?
When a colorbox control is changed manually the colors are automatically added here, but if I change the control via a local variable or property node, the colors do not get added. Therefore, is there some other way to manually add colors to this selection?
Thanks,
Shaun
08-21-2009 10:21 AM
Check the LabVIEW.in file for enties of the form
colorHistoryItemA
THis is where the custm collors are saved.
Ben
08-21-2009 10:36 AM
Hi Ben,
Thanks for the suggestion - it seems to be a good start, but unfortunately changes to the the INI file only seem to appear when LabVIEW restarts, and I'm looking for something that I can do within my application... The search continues! 🙂
Shaun
10-22-2021 05:33 AM
@shew82 wrote:
The search continues! 🙂
Did you ever find anything?
Even writing those colorHistoryItemX keys with LabVIEW's internal config functions doesn't make the controls use them.
10-22-2021 07:16 AM
I found this: LabVIEW 20xx\resource\dialog\lvconfig.llb\LV Config Write Color.vi
Tags "colorHistoryItemA" through "colorHistoryItemK" seem to be applicable.
Sometimes it works, and sometimes it doesn't. Haven't figured out why.
10-22-2021 10:15 AM
@paul_cardinale wrote:
I found this: LabVIEW 20xx\resource\dialog\lvconfig.llb\LV Config Write Color.vi
That's simply another wrapper to CfgWrite. It has the exact same effect as writing a number converted to hex as a string with LV Config Write String.vi.
@paul_cardinale wrote:Tags "colorHistoryItemA" through "colorHistoryItemK" seem to be applicable.
They are, but they seem to be loaded into a state at start, and (at least usually) the state is stored over manual changes.
@paul_cardinale wrote:Sometimes it works, and sometimes it doesn't. Haven't figured out why.
Do you mean you ever seen a value set to colorHistoryItemA work without restarting LabVIEW?
This might work if for instance no color control was loaded. But this would be completely unpractical.
I've written my own color dialog, yet again... At least now I can make it exactly how the customer wants it.
10-22-2021 10:35 AM - edited 10-22-2021 10:40 AM
wiebe@CARYA wrote:
@paul_cardinale wrote:
I found this: LabVIEW 20xx\resource\dialog\lvconfig.llb\LV Config Write Color.vi
That's simply another wrapper to CfgWrite. It has the exact same effect as writing a number converted to hex as a string with LV Config Write String.vi.
@paul_cardinale wrote:Tags "colorHistoryItemA" through "colorHistoryItemK" seem to be applicable.
They are, but they seem to be loaded into a state at start, and (at least usually) the state is stored over manual changes.
@paul_cardinale wrote:Sometimes it works, and sometimes it doesn't. Haven't figured out why.
Do you mean you ever seen a value set to colorHistoryItemA work without restarting LabVIEW?
No. I had thought so, but it turned out I was fooling myself.
10-22-2021 10:52 AM
I made this a long time ago.
10-25-2021 03:46 AM
@paul_cardinale wrote:
I made this a long time ago.
Mine is a lot simpler, because my customer actually wants it simple.