FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour richedit
Posts: 22
Joined: Fri Nov 04, 2005 09:05 PM
richedit
Posted: Fri Nov 04, 2005 09:14 PM

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 ?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: richedit
Posted: Fri Nov 04, 2005 09:39 PM
From an old message of mine:

------------------------------------------
It seems that commenting out

// Super:KeyChar( nKey, nFlags )

from KeyChar() method solves the double character bug:

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


Please test it with TESTRTF.PRG.

------------------------------------------

EMG

Continue the discussion