Spell Check integration

Started by honkinberry, October 27, 2010, 01:45:47 PM

Previous topic - Next topic

honkinberry

We've had some users request some sort of Spell Check in our dialog boxes.
Although I know I take care of this from the appropriate keyup events (and if I knew what ActiveX library to call to validate the spelling), when it gets to underlining the text in the control that is spelled wrong, suddenly it seems like it would more appropriately be handled on the OpenDCL end.
To be clear, I feel that OpenDCL for AutoCAD Mac is a *way* higher priority.  But just throwing it out there, that an ability to set a control to SpellCheck would be really cool!

--J

Fred Tomke

Hi, honkinberry, what a nice idea! Since standard text box supports no partial underlined charchacters you should think about an other control for that. Have a look at the Microsoft RichText control. There are all properties and events you need for this!

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

honkinberry

According to the info here (http://msdn.microsoft.com/en-us/library/system.windows.controls.spellcheck.aspx) there is a SpellCheck property for the control -- that doesn't seem available within OpenDCL.  Am I missing something simple?

thanks!

--J

Fred Tomke

As far as I understood the content of your link it is not only a property: it is a whole class of .NET Framework 4.0 you can address to a textbox or a richtext control. Since OpenDCL seems to use the original Microsoft controls (MFC? COMCTL? not sure) this .NET class cannot be available. That's why no .NET FrameWork is currently needed for OpenDCL. But it would so when the spell checker class would have been integrated. But - I may be wrong. I'm sure when OpenDCL will support .NET controls in the future you can use them as ActiveX controls. I'd use RTF-control in the meantime.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

honkinberry

Ah, I see, that's too bad, as that SpellCheck property seemed so elegantly simple!

So with the RichText Control, it's back to finding my own dictionary, processing the KeyUp event, underlining the misspelled word, processing the RightClick event to access suggestions, and so on, correct?

That just sounds like an awful lot of work, it might be better to just wait for the .NET control support.

--J

Fred Tomke

So it is! Or anybody has another idea.
Maybe you want to build an own ActiveX control which contains the .NET control.
But I have no idea to do that.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

This sounds like a great idea. Owen, is there anyway it could be integrated into the ODCL textbox?

Anyway I did some google'ing and found this ActiveX textbox with spell checking:
http://www.chadosoftware.com/old/aboutspt.htm
Unfortunately it's $250, but maybe you could get the trial version working...
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom