03-07-2022 07:08 AM - edited 03-07-2022 07:20 AM
Morning all,
I'm dabbling in XControls for the first time, trying to make something simple to replace something not so much that's on the floor now. And I was wondering if anyone could help me figure out why it acts strange when going from off to on. By act strange I mean it goes from the scheme color to the default Boolean look while holding the mouse down to keep the off-on transition happening.
Edit: fixed the tester VI so no other dependencies required.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
Solved! Go to Solution.
03-07-2022 08:39 AM
Note: The 4 picture items are: False, True, T→F, F→T
Some buttons have 6 picture items. The extra 2 being: False rollover, True rollover
03-07-2022 11:40 AM
Thanks for your help! Switching to a System Boolean helped a lot to start lol. The picture is the thing that can change so it can't be hardcoded in that way. So what I ended up needing to do was create a fully transparent system Boolean by uploading a random picture and making it transparent.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
03-08-2022 07:47 AM - edited 03-08-2022 07:50 AM
Now that I got that bit solved, I'm working on getting the latching mechanical action correct, and have the control always initialize as false. My solution was to just wire a false constant to the Data out in the Facade VI as shown, but I'm not sure if that's the best way to go about it. But if I just wire it directly, then once the control is for example used to stop a VI, then the next time the VI runs the control reads as true still.
There's an old post about this that I wasn't sure about necroing or not, that you actually commented on Paul. Any advice on the latching behavior in my situation? Like I said this is an introduction to XControls for me, but I do like the idea of a System Boolean with extra customization options that are continually thought of and added.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
03-08-2022 08:58 AM
The only way to do it is to have a background task polling the Xcontrol.
03-08-2022 09:16 AM
I guess it would be less than ideal to have a background process for each of these buttons in a UI. Cool solution though and thank you for the code!
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.