User Variables and Control functions

Forums Desktop Info User Variables and Control functions

Viewing 12 reply threads
  • Author
    Posts
    • #2387
      Tom

      Hi Glen,

      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:test@test.com,set:Variable2,hidden:0

      TEXT=active:1, text:TestOutput,display:%Variable1% – %Variable2%

      Any idea?
      Would be very nice! 🙂

      Thanks!

    • #2388
      webmasterwebmaster
      Keymaster

      This is not possible.

    • #2402
      Tom

      Oh, okay.

      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? 🙂

      Thanks!

    • #2410
      Anonymous

      Hi Glenn,
      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.

      Happy Christmas!
      Bob

    • #2411
      webmasterwebmaster
      Keymaster

      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:

      options:
      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…

      • This reply was modified 2 years, 6 months ago by webmaster.
      • This reply was modified 2 years, 6 months ago by webmaster.
    • #2416
      webmasterwebmaster
      Keymaster

      … a second thought is to add position options to CONTROL

      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.

    • #2417
      Robert PlesterBobPlester

      Hi Glenn,
      I would prefer your first suggestion but go for whatever is best for you.
      Bob

    • #2426
      Tom

      Hi Glenn,

      good ideas!

      I would prefer your first suggestion too, but what you prefer 🙂

      Thanks!

    • #2427
      webmasterwebmaster
      Keymaster

      A variation where I specify where the controls appear on the display row and how many controls per row:

      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 2 years, 6 months ago by webmaster.
    • #2454
      Tom

      Hi Glenn,

      sounds good. When will it be released? 🙂

      • #2457
        webmasterwebmaster
        Keymaster

        When it’s ready 🙂

    • #2483
      Tom

      Okay, we will wait, thank you! 🙂

    • #2604
      Tom

      Hi Glenn,

      any news to this topic? 🙂

      • #2605
        webmasterwebmaster
        Keymaster

        No joy so far. There remains a lot of legacy code that is making progress difficult. So the CONTROL-ARRAY approach hasn’t been successful, I’ll look for some other way to achieve it.

      • #2612
        webmasterwebmaster
        Keymaster

        on the third attempt I’ve had some success:

        Attachments:
    • #2615
      Tom

      Looks very good!

Viewing 12 reply threads
  • The topic ‘User Variables and Control functions’ is closed to new replies.
Glenn's Page