User Variables and Control functions

Forums Desktop Info User Variables and Control functions

  • This topic has 15 replies, 2 voices, and was last updated 1 month ago by AvatarTom.
Viewing 12 reply threads
  • Author
    Posts
    • #2387 Reply
      AvatarTom

      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!

      0
    • #2388 Reply
      GlennGlenn
      Keymaster

      This is not possible.

      0
    • #2402 Reply
      AvatarTom

      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!

      0
    • #2410 Reply
      Avatarbobplester
      Participant

      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

      0
    • #2411 Reply
      GlennGlenn
      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:

      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

      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 3 months, 3 weeks ago by GlennGlenn.
      • This reply was modified 3 months, 3 weeks ago by GlennGlenn.
      0
    • #2416 Reply
      GlennGlenn
      Keymaster

      … 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
    • #2417 Reply
      AvatarBobPlester

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

      0
    • #2426 Reply
      AvatarTom

      Hi Glenn,

      good ideas!

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

      Thanks!

      0
    • #2427 Reply
      GlennGlenn
      Keymaster

      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 months, 2 weeks ago by GlennGlenn.
      0
    • #2454 Reply
      AvatarTom

      Hi Glenn,

      sounds good. When will it be released? 🙂

      0
      • #2457 Reply
        GlennGlenn
        Keymaster

        When it’s ready 🙂

        3+
    • #2483 Reply
      AvatarTom

      Okay, we will wait, thank you! 🙂

      0
    • #2604 Reply
      AvatarTom

      Hi Glenn,

      any news to this topic? 🙂

      0
      • #2605 Reply
        GlennGlenn
        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.

        0
      • #2612 Reply
        GlennGlenn
        Keymaster

        on the third attempt I’ve had some success:

        Attachments:
        2+
    • #2615 Reply
      AvatarTom

      Looks very good!

      0
Viewing 12 reply threads
Reply To: User Variables and Control functions
Your information:




Do NOT follow this link or you will be banned from the site!