I have a function to add a richtext, but in this function I can not type any special characters like ä, é
Is there a solution for it?
Here is my code:
- Code: Select all Expand view RUN
FUNCTION RK_EditRichNotes(cTekst)
LOCAL oDlg, cText := ''
LOCAL oGet
DEFINE DIALOG oDlg TITLE 'Aantekening' FROM 0, 0 TO 500, 600
@ 35, 20 GET oGet VAR cText MEMO OF oDlg ;
SIZE 560, 460
oGet:SetRichText(.t.)
oGet:SetImportGraf(.t.)
oGet:AddHRuler()
oGet:SetUndo(.t.)
IF LEN(ALLTRIM(cTekst)) > 0
cText := cTekst
oGet:SetAttributedString(cText)
ENDIF
oGet:GoTop()
@ 5, 500 BUTTON oBtnOk PROMPT 'Ok' OF oDlg ACTION cAanteken := oGet:GetRTF(), oDlg:END()
oBtnOk:SetFont( 'Arial', 14 )
ACTIVATE DIALOG oDlg CENTERED
RETURN NIL