Auto Size dialogs

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
alasdairbr
Newbie
Posts: 1
Joined: Tue Apr 28, 2015 12:41 pm

Auto Size dialogs

Post by alasdairbr » Tue Apr 28, 2015 12:47 pm

Hi all,

Sorry if this has been answered previously, but I've not been able to find an answer as yet.

I have a piece of automation which has a number of error messages which can trigger. In an attempt to use abstraction to reduce the length of the code I am trying to create a single dialog which can have varying messages within it. Obviously I'd like the dialog to resize as necessary to fit the length of the message. So within the dialog you have a dynamic message which is set whenever the dialog is triggered, and a static message underneath which doesn't change.

I've been able to get the dialog to increase in size to fit the message, however I've not been able to also move down the other label beneath the dynamic message. As a result they overlap and become illegible.

Is there a way to stop this happening? Or will I have to concatenate the two messages and control the layout with CRLFs?

Thanks in advance! :)

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Auto Size dialogs

Post by JRL » Wed Apr 29, 2015 1:23 pm

Probably the easiest thing would be to concatenate the messages into one string separating with crlf as you have already mentioned. Otherwise, you could try the method I mention HERE. You can use the method to acquire the exact size of your text strings then adjust the position in the dialog accordingly.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts