User Variables and Control functions
- This topic has 11 replies, 2 voices, and was last updated 4 days, 10 hours ago by Tom.
10 December, 2019 at 11:14 pm #2387Tom
how is it possible to combine two Control buttons in one text output?
I’ve tried the following, but it doesn’t work :/
CONTROL=active:1,text:test111: ,display:Test text1,type=0,uri:tel:123456789,set:Variable1,hidden:0
CONTROL=active:1,text:test222: ,display:Test, text2,type=0,uri:mailto:firstname.lastname@example.org,set:Variable2,hidden:0
TEXT=active:1, text:TestOutput,display:%Variable1% – %Variable2%
Would be very nice! 🙂
11 December, 2019 at 7:47 am #2388
This is not possible.0
11 December, 2019 at 7:17 pm #2402Tom
But is it possible that I can show two buttons within one control function? One button with the telephon number and one button with e-mail?
If not, maybe as a feature request? 🙂
12 December, 2019 at 10:45 pm #2410bobplesterParticipant
This idea is pretty much identical to one I was intending to submit.
Mine goes like this:
1 Two or more CONTROL buttons on a single line in DTI,
2 option for buttons to be all same specified width,
3 inter-button gaps to be all same specified width,
4 option for alignment to be left, centre or right.
13 December, 2019 at 7:12 am #2411
ok guys. I’m feeling the pressure. This is starting to sound like some kind of control array thing or a table if you like.
I’m thinking of an item where we define the layout for an array of controls followed by the control items that will be included in the array. For example:
CONTROL-ARRAY=controls-per-row:2, control-width:80, control-gap:10, wide:1, align:1, etc.... CONTROL=display:Documents,uri:%userprofile% CONTROL=display:Task Manager,uri:taskmgr END-CONTROL-ARRAY
wide : 0=right column (default), 1=both columns
align : 0=left (default), 1=centre, 2=right
The first line sets up an array to which all succeeding controls are assigned until it encounters the end tag.
this arrangement means you control the layout. it’s up to you to make sure the buttons fit within the display region. The number of display rows is the number of controls by the controls-per-row.
more thoughts later…0
14 December, 2019 at 7:01 am #2416
… a second thought is to add position options to CONTROL
CONTROL=left:10, width:80, display:Documents, uri:%userprofile% CONTROL=left:110, width:80, display-previous:1, display:Task Manager,uri:taskmgr CONTROL=left:210, width:80, display-previous:1, display:System Info,uri:msinfo32.exe
This makes three buttons of width 80 at 10, 110 and 210 on a single display line. If I add the wide option it will spread over both columns.0
14 December, 2019 at 6:24 pm #2417BobPlester
I would prefer your first suggestion but go for whatever is best for you.
23 December, 2019 at 11:52 pm #2426Tom
I would prefer your first suggestion too, but what you prefer 🙂
24 December, 2019 at 8:20 am #2427
A variation where I specify where the controls appear on the display row and how many controls per row:
CONTROL-ARRAY=left:10 110 210, control-width:80, wide:1 CONTROL=display:Documents,uri:%userprofile% CONTROL=display:Task Manager,uri:taskmgr END-CONTROL-ARRAY
because you know the width of the column and the total display width, this is enough to get them left, right or center aligned or whatever non aligned design you fancy.
The number of display rows actually used is:
number of controls divided by number of spots rounded up
- This reply was modified 3 weeks, 4 days ago by Glenn.
3 January, 2020 at 8:35 pm #2454Tom
sounds good. When will it be released? 🙂0
4 January, 2020 at 9:42 am #2457
When it’s ready 🙂2+
14 January, 2020 at 8:28 pm #2483Tom
Okay, we will wait, thank you! 🙂0