Posts: 474
Threads: 61
Joined: May 2012
Not sure which forum to post this in, but was wondering if it's possible to include a variable in a button's text.
Specifically, it would be convenient to include a light's current dim level in the button name.
Russ
Flamin' Noobie...
Warp speed now and don't give me any of that dilythium crystal crap!
Posts: 40,483
Threads: 491
Joined: Aug 2002
You would have to build up a composite type of control, with a transparent button over the top of a display graphic. You can always use the transparent button's onpress/onrelease to fake a press release in the underlying graphic.
Dean Roddey
Explorans limites defectum
Posts: 474
Threads: 61
Joined: May 2012
09-24-2012, 05:26 PM
(This post was last modified: 09-24-2012, 05:29 PM by rtarver.)
I'm doing something similar I suppose. I built an iphone template for my lights. I have about 8 check buttons, and each one represents a particular light. When I select any light, the intensity slider streams instructions to the correct light. I also have one dim level text box that shows the level of the currently selected light. I guess that's like how you would suggest me doing this.
I did it this way so I only have to have a column of buttons for my different lights, a column of buttons for 0/20/40/60/80/100 percent dim, and then of course a slider if I really want fine control. Makes for a clean template for the iphone.
Thinking this through, and considering options.... we have the ability to use a progress bar to display values (normally between 0 and 100) but could be others. Have you considered having the ability to change the opacity of a button or graphic on the fly? EG, I would create an led style button, and it's intensity would reflect the current dim level.
Thanks again for your ever present help.
PS, I think I queried once before, but have you considered tapatalk app for the forum? I think vbulletin has the option and the owner only has to turn on a few config options.
Russ
Flamin' Noobie...
Warp speed now and don't give me any of that dilythium crystal crap!
Posts: 40,483
Threads: 491
Joined: Aug 2002
It's been on the list for a while to have a color fill based on value, and an opacity would be about the same thing. I'll have to tackle that at some point.
Dean Roddey
Explorans limites defectum