TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Visual DCL Programming => Topic started by: sumski on January 12, 2008, 06:01:43 PM

Title: Message window in created Menu
Post by: sumski on January 12, 2008, 06:01:43 PM
Hy everyone!!
I created new menu.
Its working properly, I am just wondering something about message window, if anyone could know I will be very appreciative:

How to enter new row in message window?

I have 2 separate phrases who can standalone
menu item: TypeName [Hello](alert "Hello everyone\Hello Santa");;

I inserted backslash and semicolons but it still ask to press Enter lastly (without them I have to press it twice),
I tried with \n but it makes no difference.

Anyone knows solution?
Title: Re: Message window in created Menu
Post by: Kerry on January 12, 2008, 06:36:09 PM
Tooltips accept HTML code so you can use the <br> symbol to create a break between lines of text in the tip.
Title: Re: Message window in created Menu
Post by: sumski on January 13, 2008, 08:29:28 AM
Thanks for the answer, but it did not make any change:


menu item-
Code: [Select]
TypeName           [Hello](alert "Hello everyone<br>Hello Santa")(http://www.imagesforme.com/out.php/i16173_ScreenShot002.jpg)

I tried with blankspace before and after <br> but "Hello Santa" did not crossed in next row
Title: Re: Message window in created Menu
Post by: jbuzbee on January 13, 2008, 09:27:40 AM
(alert(strcat "Hellow Santa" "\nHellow Santa"))

or

(alert "Hellow Santa\nI've been bad . . .")

Title: Re: Message window in created Menu
Post by: Kerry on January 13, 2008, 10:46:36 AM

Sorry, for some reason I thought you wanted this for an ODCL tooltip ..
Title: Re: Message window in created Menu
Post by: sumski on January 13, 2008, 04:55:06 PM
Seems like the problem is in code. Apparently I need to use a different technique other than an (alert) box.

(alert "Hellow Santa\nI've been bad . . .") would work fine when alert is called from a lisp routine.

I have to use other code, probably from acaddoc.lsp file, but I don"t know how to associate functions from lisp and menu files.