It might be possible to even use the textbox handle as a parameter, though Clarion uses its own window components so I have my doubts. But for sure you can make a C# function that takes a CSTRING pointer or BSTRING pointer from Clarion and changes the content of the string. For example embedding the call to the Accepted-event of the Clarion-textbox and passing the use-variable of the textbox you can change the content of use-variable and then call DISPLAY() to show the changed value in textbox.
You don’t have many options with “as you type” spell check for the standard Clarion TEXT control. It doesn’t support multiple colors for the text. You can either use RTF control and change color of the misspelled text or TX Text Control which supports wiggly line under misspelled word. We have wrapper for the dll version of the spellchecker with support for the BackgroundNotify messaging
HI Ichudakov, thanks for the input. I had to show suggested words while right click. I used one function of spellchecked like SSCE_CheckCtrlBackgroundMenu but th eproblem is I am passing the x and y coordinates using MOUSEX() AND MOUSEY(), but the cursor goes back to some other word and showing the suggested words. Is it issuw with spellchecker dll or Clarion?