Page 1 of 1

Dynamic horizontal position of an object

Posted: Tue Jul 23, 2019 12:28 pm
by christiaan
I want to position an edit box right after a text BUT the text's content is given by an user defined variable ($my_content$).

So the horizontal position of the edit box depends on the content of the user defined variable.

How can the edit box by positioned right after the text box ?

Image

As far as I know objects positioning in WB is always absolut, not relative.

Any suggestions ?

Re: Dynamic horizontal position of an object

Posted: Tue Jul 23, 2019 1:11 pm
by BaconFries
I am confused looking at the image you are showing a Editbox and a Combobox is this what you are meaning?

Re: Dynamic horizontal position of an object

Posted: Tue Jul 23, 2019 2:42 pm
by WWBman
If $my_content$ is in an Editbox could you use Alignment - Right?

Re: Dynamic horizontal position of an object

Posted: Tue Jul 23, 2019 5:02 pm
by christiaan
Wow WWBman, very clever idea :D but the text needs to be aligned left :(

This is the source
Image

This is the result
Image

And this is what it should look like
Image

Hmm, seems to be a very tricky challenge

Re: Dynamic horizontal position of an object

Posted: Tue Jul 23, 2019 5:47 pm
by WWBman
What object type contains $my_content$?

Re: Dynamic horizontal position of an object

Posted: Tue Jul 23, 2019 6:14 pm
by christiaan
$my_content$ is text and contains only text