#define EM_GETLANGOPTIONS (WM_USER + 121)
#define EM_SETLANGOPTIONS (WM_USER + 120)
#define IMF_SPELLCHECKING 0x0800
MENUITEM "EM_GETLANGOPTIONS" ACTION MsgInfo( SendMessage( oRtf:hWnd, EM_GETLANGOPTIONS, 0, 0 ) )
MENUITEM "EM_SETLANGOPTIONS" ACTION MsgInfo( SendMessage( oRtf:hWnd, EM_SETLANGOPTIONS, 0, IMF_SPELLCHECKING ) )
When I type in an error, it shows the line underneath the mispelled word but there is no dictionary or spelling correction offered.
1). The spell checker, in this example, does underline inorrectly spelled words, but it does not provide any alternatives.
2) What is the purpose of SET_LANG_OPTIONS
3). The same capability for checking spelling does not seem to apply to the FUNCTION. Is it doable ?
4). Can this work with existing .FPT files to retrieve and save RichText formatted text ?
GET or SET Language Options show me blank screens.
MENUITEM "EM_SETLANGOPTIONS" ;
ACTION ( SendMessage( oRtf:hWnd, EM_SETLANGOPTIONS, 0, nOr( IMF_SPELLCHECKING, IMF_TKBPREDICTION, IMF_TKBAUTOCORRECTION ) ) )
I tried putting in IMF_SPELLCHECKING=1 which I assume would turn it on, but it doesn't save the value.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 92 guests