AutoCAD 2004 - Mtext and background color ?


Hello,

Is it possible to automatically assign a background color which would apply to the background area of the mtext only.

for example if I wanted red text with grey background ?

Thanks.
andyw27Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MuertyCommented:
According to Autodesk it is not possible as it is supposed to be the color of the background of the drawing window.

There are 2 ideas that come to mind:

1) A vba reactor that changes the background color of the drawing area when mtedit is invoked (not really a good solution)

2) An API call to change the background and foreground colors of the mtedit control (richedit) by using SendMessage

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
victorusCommented:
Another solution is to use a different external editor for your mtext edits. This is from the AutoCAD help file:

MTEXTED

Sets the name of the application to use for editing multiline text objects. You can specify a different text editor for the MTEXT command. If you set MTEXTED to internal or to null, the In-Place Text Editor is displayed. You set MTEXTED to null by entering a period (.). If you specify a path and the name of the executable file for another text editor or word processor, that path and file name instead are displayed instead.

If the multiline text object is fewer than 80 characters, you can enter :lisped to use the LISP editor.

Text editors other than the internal one show the formatting codes in paragraph text.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CAD/Architecture Software

From novice to tech pro — start learning today.