TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MSTG007 on November 21, 2017, 12:37:20 PM

Title: Lisp Alert Box Text Color?
Post by: MSTG007 on November 21, 2017, 12:37:20 PM
the typical lisp alert box text. Can that be different colors and boldness?

Someone does not like my alerts, saying that do not pop out enough. ideas?
Title: Re: Lisp Alert Box Text Color?
Post by: Lee Mac on November 21, 2017, 12:43:40 PM
You could use the popup (http://lee-mac.com/popup.html) method of the Shell object.

Or you could create your own DCL dialog and either use an image tile populated with text, or text with fixed_width_font = true.
Title: Re: Lisp Alert Box Text Color?
Post by: ChrisCarlson on November 21, 2017, 12:49:47 PM
I'm confused, the alert window is set to always on top. You cannot get anymore "pop out enough".
Title: Re: Lisp Alert Box Text Color?
Post by: MSTG007 on November 21, 2017, 12:53:43 PM
For instance, they were wanting the "OPEN ALL Sheets" to be bold red. so the user would take note.

Something along those lines...

Code: [Select]
(ALERT "OPEN ALL Sheets.\n\n\nAdd Layouts into SheetSet Manager.\n\n\nSheetSet Manager \ Rename and Renumber Sheets.\n\n\nExpress Tools \ File Tools \ Save All Drawings.")
Title: Re: Lisp Alert Box Text Color?
Post by: ChrisCarlson on November 21, 2017, 02:24:02 PM
That can easily be done in standard DCL with slides. Check out an oldie but goodie of a website

http://web2.airmail.net/terrycad/Tutorials/MyDialogs.htm
Title: Re: Lisp Alert Box Text Color?
Post by: MSTG007 on November 21, 2017, 02:28:34 PM
Thanks guys for your input and help! ill hopefully get close to what im looking for.
Title: Re: Lisp Alert Box Text Color?
Post by: efernal on November 29, 2017, 08:50:18 AM
Use AutoCAD's acet-ui-message function...

(acet-ui-message "MESSAGE" "TITLE" 48)
(acet-ui-message "MESSAGE" "TITLE" 16)
(acet-ui-message "MESSAGE" "TITLE" 32)
(acet-ui-message "MESSAGE" "TITLE" 52)

etc...