Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combining label and value???
#1
Been banging my head on this for the evening.  I'm building some simple lighting pages for my phone.  In the end, I decided on a standard set of buttons; Off, 25%, 50%, 75%, Full.  I'd also like to somehow have another button(header) that says:  "Carriage Lights: 50%".  Obviously, the X% is a function of the current value.

I've tried this several ways and can't seem to get it sorted out.  I've tried it with variables and with field values.  What I honestly wanted was a label button in the middle with another button on either side to raise/lower by 20%.  I can work the logic with if/else for not going over/under 100/0... but then I run into faults when trying to add values.

There's gotta be an easier way than what I've been doing (which isn't working perfectly).

Thoughts anyone?

TIA
Flamin' Noobie...
Warp speed now and don't give me any of that dilythium crystal crap!
Reply
#2
In any of the widgets that are field or variable driven, generally you can put a %(f) in the caption text and that will be replaced with the current value of the field or driver.

From one of the "Tip o' the Day" threads:

http://www.charmedquark.com/vb_forum/sho...p?tid=9918

There are field and variable based command buttons which should work with that. Normally they just display the value of the field or variable, but if you add some text and put the %(f) in it, they will just put the value the text where the token is.
Dean Roddey
Explorans limites defectum
Reply
#3
Thanks Dean,

Lots of stuff drifts away when you don’t use it for awhile. Now I have a quick and cheap phone interface via CTC CQC.
Flamin' Noobie...
Warp speed now and don't give me any of that dilythium crystal crap!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Combining Server and Client daddyd 10 3,505 09-05-2014, 08:13 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)