Author Topic: Dialog editor and Linefeed  (Read 44 times)

siocnarf

  • Newbie
  • *
  • Posts: 34
Dialog editor and Linefeed
« on: March 19, 2021, 09:50:44 am »
Hi,

I  have a text variable: "This is a potato" and I would like to put in dialog editor a LF in the string to put potato on a second line.

If I do "this is a @LF potato then the texte will just show "this is a @LF Potato"
How may I do that?

Thanks,

Francois

td

  • Tech Support
  • *****
  • Posts: 3672
    • WinBatch
Re: Dialog editor and Linefeed
« Reply #1 on: March 19, 2021, 10:08:58 am »
Assuming you are referring to one of your dialog's control variable you put the @LF in the variable and not Dialog Editor.

TheVariable = "this is a":@LF:"potato"
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

td

  • Tech Support
  • *****
  • Posts: 3672
    • WinBatch
Re: Dialog editor and Linefeed
« Reply #2 on: March 19, 2021, 01:28:00 pm »
If you were referring to some text that is part of a control's title but not something you can change inside a dialog callback procedure then you need to substitution in the dialog template. You can also specify substitution in the Dialog Editor. If you do use substitution in the template, you can't use the "Open with WIL" menu options when loading the template into the Editor.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade