Graphics

 View Only
Expand all | Collapse all

Two Text (bounding) boxes, select the one with the select the widest

  • 1.  Two Text (bounding) boxes, select the one with the select the widest

    Posted 07-06-2020 08:27

    When I got two text boxes, How can I get the value of the one with the wides bounding box as a result?

    In The visual editor there are "greater than" and "Smaller than", but these results are only "0" and "1". And I want to get my widest value of the bounding box.

     

    In script I'm getting results like this (but I want to achive this in the visual logic)

    if NummerObject.BoundingBox.Width > ArtiestObject.BoundingBox.Width then
      WidthObject.Text = NummerObject.BoundingBox.Width
    else
      WidthObject.text = ArtiestObject.BoundingBox.Width
    end if



  • 2.  RE: Two Text (bounding) boxes, select the one with the select the widest

    Posted 07-08-2020 01:49

    Heya Harm!

     

    You're gonna be looking for the "Max Value" Visual Logic Block, located in the Math category.


    #XPression