When i try the richedit samples FWH25 and hit a key from the keyboard
The letter appears 2 times on the screen .
What is wrong ?
richedit
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: richedit
From an old message of mine:
------------------------------------------
It seems that commenting out
// Super:KeyChar( nKey, nFlags )
from KeyChar() method solves the double character bug:
Please test it with TESTRTF.PRG.
------------------------------------------
EMG
------------------------------------------
It seems that commenting out
// Super:KeyChar( nKey, nFlags )
from KeyChar() method solves the double character bug:
Code: Select all
METHOD KeyChar( nKey, nFlags ) CLASS TRichEdit
// Super:KeyChar( nKey, nFlags )
if ::lReadOnly
return 0
endif
::PostMsg( FM_CHANGE )
if ::lHighlight
::PostMsg( FM_HIGHLIGHT )
endif
return nil
------------------------------------------
EMG