Author Topic: MText Editor - Project Exercise  (Read 9057 times)

0 Members and 1 Guest are viewing this topic.

LE

  • Guest
Re: MText Editor - Project Exercise
« Reply #15 on: December 01, 2006, 07:58:00 PM »
As far as the form icon goes Luis, I've never gotten it to work in either 2005, 6 or 7. I suspect AutoCAD overrides it...no biggy.

Thanks;

I noticed that it is possible if I put some code in the form_load event.

Code: [Select]
Icon icoMain = new Icon("mt.ico");
this.Icon = icoMain;

It works, but the ico file must be in the same location as the dll... anyway I will look if it is possible if not, as you said no biggy...

le

LE

  • Guest
Re: MText Editor - Project Exercise
« Reply #16 on: December 02, 2006, 10:22:02 PM »
Here is what I end up with this command, included is the DLL to work with AutoCAD 2007 - provided AS-IS.

Command: MTED

Select a Mtext and will open the UI.

Features:

1. Highlight ALL the MTEXT contents when loading the dialog.
2. Color formatting removal.
3. Proper Case - foreach first character word.
4. Whitespace stripping to single between words.
5. Exit dialog without changes.

End of this topic.
« Last Edit: December 10, 2006, 12:33:58 PM by LE »

Glenn R

  • Guest
Re: MText Editor - Project Exercise
« Reply #17 on: December 02, 2006, 10:45:10 PM »
Nice one Luis - well done.
C# is quite nice isn't it? :)

Cheers,
Glenn.

LE

  • Guest
Re: MText Editor - Project Exercise
« Reply #18 on: December 03, 2006, 01:13:33 PM »
Nice one Luis - well done.
C# is quite nice isn't it? :)

Thank you.

Yes it is very nice  :-)
« Last Edit: December 04, 2006, 09:42:34 AM by LE »