06-13-2023 03:51 PM
Hello, I'm working on packaging my code into UI and I find the default options for UI are limiting.
Can I possibly replace one of the default Boolean controls with a checkbox that keeps some controls greyed out or somehow preventing user from interacting with them unless said Boolean is checked?
Can I replace Boolean controls with a bubble instead of rocker/slide switch? Even better, I would prefer to replace Boolean indicators with with a clickable box that turns blue/grey when selected/deselected. Is that feasible? Currently I attach control to LED and put a box around them to achieve that - not efficient at all.
Similarly, I want controls to be highlighted with a light blue box (typical Windows-style buttons) when hovering mouse.
Is what I'm describing possible? I'm not happy with current buttons as they occupy considerable space and clutter interface as a result. Perhaps there are tutorials specifically devoted to building intuitive UI?
Solved! Go to Solution.
06-13-2023 03:56 PM
Yes, there are tons of options for that sort of thing. Graying and ungraying need to be done with property nodes; they can't be linked automagically to a checkbox.
Do some reading on event structures to detect the button presses, as well as the "Enabled" property (which you can set to Enabled, Disabled, or Disabled and Grayed Out).
Look around in the Controls palette, especially under System Controls. You can also install the "Missing system controls" package on VIPM to get more system-styled controls.
06-14-2023 02:48 PM
A couple of other options to consider:
06-19-2023 11:30 AM
Apologies, I didn't realize that I'm only looking at a "Modern" pallet, there are a lot more built-in UI elements to do what I want.