Tiny Core Base > TCB Tips & Tricks

Fun with TC POPUP gui

<< < (2/2)

pek:
Hi, how to add new line in popup?

--- Code: ---popup Hello World \n Newline..
--- End code ---
Literally printed

--- Code: ---Hello World \n Newline..
--- End code ---
I want to get

--- Code: ---Hello World
Newline..
--- End code ---

How to do that?
Thank you.

Rich:
Hi pek
I don't think you can. I think it's limited to 1 line. It won't wrap long lines either. It just displays a wider popup.
If you do this:

--- Code: ---tc@E310:~$ popup "Hello there" &
tc@E310:~$ popup "Helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo there" &
--- End code ---
You'll see popup just uses a much wider window to display the text.

pek:
That's such a pity.
But good to know, so now I can stop tearing my hair trying to figure out how to do that  ;D
Thanks for clarifying Rich.

Navigation

[0] Message Index

[*] Previous page

Go to full version