Author Topic: Message window in created Menu  (Read 7706 times)

0 Members and 1 Guest are viewing this topic.

sumski

  • Guest
Message window in created Menu
« 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?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Message window in created Menu
« Reply #1 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.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

sumski

  • Guest
Re: Message window in created Menu
« Reply #2 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")

I tried with blankspace before and after <br> but "Hello Santa" did not crossed in next row

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Message window in created Menu
« Reply #3 on: January 13, 2008, 09:27:40 AM »
(alert(strcat "Hellow Santa" "\nHellow Santa"))

or

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

James Buzbee
Windows 8

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Message window in created Menu
« Reply #4 on: January 13, 2008, 10:46:36 AM »

Sorry, for some reason I thought you wanted this for an ODCL tooltip ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

sumski

  • Guest
Re: Message window in created Menu
« Reply #5 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.