Jump to content

System Style Enum that can be modified?


Ronin7

Recommended Posts

Posted (edited)

Hello,

I am working in LabVIEW 2022Q3 32 bit.

I have been trying to make a System Style Enum that can be modified since I need to change the RingText.BGColor property to highlight the control if the UI determines there is a settings conflict.  I have modified an NXG Style Enum to look correct but when you click on the image that is the down arrow the control does not respond.  Any ideas on how to include that image in the area that the control responds to a mouse click?  For reasons in the code I'm not able to use a combo box.  I have attached the control.   I really like the NXG/Fuse style controls but the enums and rings are not great looking.

Tap Passive Load Relay Channel Enum.ctl

 

Edited by Ronin7
Grammar
Posted
On 7/3/2025 at 11:38 PM, Ronin7 said:

Hello,

I am working in LabVIEW 2022Q3 32 bit.

I have been trying to make a System Style Enum that can be modified since I need to change the RingText.BGColor property to highlight the control if the UI determines there is a settings conflict.  I have modified an NXG Style Enum to look correct but when you click on the image that is the down arrow the control does not respond.  Any ideas on how to include that image in the area that the control responds to a mouse click?  For reasons in the code I'm not able to use a combo box.  I have attached the control.   I really like the NXG/Fuse style controls but the enums and rings are not great looking.

Tap Passive Load Relay Channel Enum.ctl 4.3 kB · 4 downloads

 

System style controls adhere to the actual system control settings and adapt to whatever your platforms currently defined visual style is. This includes also color and just about any other optical aspect aside of size of the control.

If you customize existing controls by adding elements you have to be very careful about Z order of the individual parts. If you put a glyph on top of a sub-part with a user interaction you basically shield that sub-part from receiving the user interaction since the added glyph gets the event and not knowing what to do with it will simply discard it.

 

Posted (edited)

Rolf,

I get that an actual system control is defined by the platform which is why I modified an NXG/Fuse enum.  What I am trying to do is create an enum that has an appearance that is similar to a system enum (i.e. single down arrow on right side that responds by showing the items in the enum like the system style instead of up/down arrows seen on NXG/Fuse system enums).  The problem is that I can't get the look I need without putting the glyph over the area that is responsive to mouse clicks in which case the control does not respond when the user clicks on the glyph. If I change the Z-order then of course the glyph goes behind is hidden. 

Edited by Ronin7

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.