Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

Getting the Handle of the DW Edit control to pass to a spell checker

$
0
0

Hello all,

I'm currently tasked with implementing 'As You Type' spell checking on DataWindow char(xxx) columns.

3rd party ActiveX or DLL spell checkers can implement 'As You Type' checking if you provide them with the handle of an edit control.  I can successfully implement this feature on MultilineEdit controls (not to mention RTEs).  One vendor's tool can even red line misspelled works in a PB MLE and has a neat API that suggests replacements!

 

But implementing for a DWO Edit has so far eluded me. Objects in a DW are not window controls. The DW is basically a bit map with an edit control (or 2) floating over the picture.  There is no API to get the handle of the edit control within the DW.

 

One approach I tried was to sync the DW Edit control with a the text property of registered MLE in the EditChanged event.  Unfortunately the activeX does not see the text changing through an assignment statement as it does when the control has focus and is receiving keyboard input.  (My guess is that the spell checker registers itself as a keyboard event listener on the edit control)

 

Yes I know it is possible to spell check the contents of strings - or to grab the contents of a DWO edit control and pass it to a spell checker dialog - but that is not the desired behavior.

 

Therefor I'm looking for a way to get the handle of the Edit control and register it with the spell checking service.

 

---Anybody?

 

 

In this screen shot you can see that I've successfully implemented for MLE but the spell checker doesn't see the text when it is assigned from the DW

 

 

---I'm open to an alternate approach if anyone can suggest a tried and true method

 

Thanks,

 

Yakov

spelck.png


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>