<text name='txtInfo' text='This is to help you setting up your e-mail account settings. Please enter your e-mail address and password. Now click on -Check- to detect your mailserver settings.' />
<button name='btnCheck' text='Check' />
<hbox>
<button name='btnCancel' text='Cancel' />
<button name='btnOK' text='OK'/>
</hbox>
Obviously, txtInfo contains a very long text and the dialogue is getting way to wide trying to do all in one line. I tried to insert linebreaks but this seems not possible. Best would be to have the field hitting a maximum width and then do wordwrap. The height has to automatically fit so that the following elements are in good position.
There is no gadget-type available to simply display multiline text with wordwrap? I thought I only missed something.
But it will not auto-fit the sizes, right? It seems to respect linebreaks by using SetGadgetText(), but no auto-size and I need to know all sizes before to use width and height. But my text is multi-language and will change in size. And users may have different DPI settings so my pixel height and width will fail for this field, too.
I just found out that using 
 as a linebreak in XML seems to work (at least on Windows, did not test on others yet). In such case the size seems to be automatically chosen. But no wordwrap at all. Not very satisfying as my translator is now responsive for the layout...
Kukulkan wrote:But no wordwrap at all. Not very satisfying as my translator is now responsive for the layout...
Hi,
unfortunately, I don't have any additional information about the behaviour of PB's XML dialogs.
But when your program has to do word wrap itself, then some code in this thread might be helpful.