LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UI challenge: Modifying control scrollbars color

Hi LabVIEW devs,

 

I have an interesting challenge for those of you who like making great UI with LabVIEW.

 

I'd like to create a dark UI theme. I can deal with the color of all objects I'm using except for the scrollbars.

 

Here is an example of what I'm working on. You can see that the scrollbar is not enough dark compare to the rest of the UI (and the scrollbar is relatively small in this example).

 

Olivier-JOURDAN_0-1619602664244.png

 

 

Does someone know a way to change color on scrollbars?  

Thanks in advance for your replies.


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 1 of 9
(3,330 Views)

Hi Olivier,

 

which kind of control do you use?

Did you try a "System" control, which uses the colors selected by the user in the Windows system settings?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(3,325 Views)

Hi GerdW,

 

I tried with all kinds of controls from classic to NXG style.

 

System ones could be a solution but require changing system settings. Not really user-friendly if the application is not the only one used on the computer. 


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 3 of 9
(3,316 Views)

Hi Olivier,

 

I couldn't find a way to set a different color on those scrollbars, not even in the Control editor.

It seems you need to replace the scrollbar of that listbox by your own "scrollbar"-like slider to be able to color it the way you want…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(3,248 Views)

Works for the "modern" listbox. But it does seem hit or miss as to which control you can edit the scroll bar and I have not found good documentation on which ones you can, or why it is.

 

Dark Listbox.png

Message 5 of 9
(3,235 Views)

You're right StevenD, thanks.

That a simple way I didn't think of and that could give a kind of workaround. 

 

But I realize that I didn't be enough accurate in my issue description. I would have loved to be able to edit each part of the scrollbar control. The same way you can do with a ring control for example.


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 6 of 9
(3,230 Views)

Do you mean at runtime?

What sort of control(s) do you need?

 

Even given a Scrollbar reference (which I couldn't managed to get from any of the arrays/listboxes I tried with Property Nodes) I couldn't find a Color property 😞


GCentral
0 Kudos
Message 7 of 9
(3,223 Views)

I just use the coloring tool, and it works fine (but I've got a bunch of extra stuff turned on).

"If you weren't supposed to push it, it wouldn't be a button."
Download All
0 Kudos
Message 8 of 9
(3,217 Views)

@cbutcher  a écrit :

Do you mean at runtime?

 


No, I'm just trying to edit the control in the editor. In many controls, you can replace parts with your own pictures. It seems that you basically can't do it on a scrollbar object.

 


@cbutcher  a écrit :

What sort of control(s) do you need?

 

I'm basically using scrollbars, listbox, and multicolumn list box.


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 9 of 9
(3,205 Views)