Individual array values in graphical interface

Home Forums Problems and solutions in GDL Graphical UI and parameters list Individual array values in graphical interface

This topic contains 1 reply, has 1 voice, and was last updated by  Barry Kelly 4 days, 22 hours ago.

  • Author
    Posts
  • #4361

    Barry Kelly
    Participant

    I have an object that draws site boundary lines (all nice and stretchy).
    It has a length parameter that is an array containing the lengths of all of the boundary lines.
    I would like to display each individual array value separately in the graphical interface (see attached image).
    Is this possible?
    I hope I am missing something very obvious.

    I have had no luck with UI_INFIELD “length” – I just get all of the values in one button.
    UI_INFIELD “length[1]” does not work.

    I can use UI_OUTFILED “length[1]” to get un-editable text of the value – but I can not format the text to hide the unwanted decimal places.

    Does anyone have any ideas?

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #4363

    Barry Kelly
    Participant

    It’s all OK.
    I have it now.

    UI_INFIELD{2} length[1], 70,20,65,15
    UI_INFIELD{2} length[2], 70,40,65,15

    {2} and no quotes did the trick.
    I am sure I had tried that already but obviously not.
    I was sure it could be done.

    Everyone can relax now – panic over!

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

You must be logged in to reply to this topic.