08-12-2024 06:57 AM
Dear All,
I use a progress bar in my CVI2017 project and I would like to change the default fill color to blue.
As far as I understood I have to disable the panel theme in order to make the color change effective but the fill color still remains the default (green).
Here are the relevant rows from my code:
ProgressBar_ConvertFromSlide (panelHandle, PANEL_PROGRESSBAR);
ProgressBar_SetAttribute (panelHandle, PANEL_PROGRESSBAR, ATTR_DISABLE_PANEL_THEME,1);
ProgressBar_SetAttribute (panelHandle, PANEL_PROGRESSBAR, ATTR_PROGRESSBAR_BAR_COLOR, VAL_BLUE);
What am I doing wrong?
Solved! Go to Solution.
08-12-2024 08:35 AM
Hi
Try to disable the panel system them
SetPanelAttribute(hPanel, ATTR_CONFORM_TO_SYSTEM_THEME, 0);
Jan
08-12-2024 08:44 AM
Thank you for the tip, I just tried it but it did not help.
08-13-2024 01:59 AM
Hi
Use SetCtrlAttribute (panelHandle, PANEL_PROGRESS, ATTR_DISABLE_PANEL_THEME, 1);
before ProgressBar_ConvertFromSlide();
Jan
08-13-2024 03:25 AM
Hi
It works, thank you.