Jump to content

Listbox and MulticolumnListbox Border and Horizontal Lines Colors


Recommended Posts

Hello All,

I am trying to apply some principles to dynamically theme a UI in LabVIEW a la Google Material (https://m3.material.io/). I have created a theme class to define the different color schemes for the different situations (light mode, dark mode, whatever else) after loaded from a file. I am getting things to work pretty well overall EXCEPT I cannot find a good way to change the following colors:

  • Listbox: border (the blue box surrounding the two listboxes shown in the screenshot)
  • MulticolumnListbox: border (gray in the screenshots so not too big of a deal)
  • MulticolumnListbox: horizontal lines (cannot see anything that implies dynamic coloring for this)

I will go ahead and attach the VI but I doubt it will be very useful for figuring this out - all the coloring will happen via another VI. I just need to figure out the properties to make this happen. Or to be gently let down by telling me it isn't possible for those items and I have to figure out a work around........

 

side note, this is not where things will actually be put on the screen, so don't get bogged down in that weird detail :D

dark theme.PNG

light theme.PNG

test vi to theme.vi

  • Like 1
Link to comment

I don't see a way to change the border color programatically (even with scripting).  The only way to change the border color is with the paintbrush tool in the dev environment- so maybe create a dedicated control for each of the above types with the coloring applied in the dev environment and then programatically show/hide each themed control.  Not elegant and would require some extra logic to show and hide the themed control but is doable.  If you get really desperate you might be able to do what you need with the .net versions of the controls you want to use but that is a whole new can of worms.

Link to comment

I’m trying to make it all dynamic enough that I don’t need tricks like hiding controls. Hoping to make this a project-to-project utility in the long term. 
 

also a coworker pointed out those scroll bars are likely in the same boat 😭😭

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.