richedit

richedit

Postby jacquet philippe » Fri Nov 04, 2005 9: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 ?
jacquet philippe
 
Posts: 22
Joined: Fri Nov 04, 2005 9:05 pm
Location: LIEGE Belgium

Re: richedit

Postby Enrico Maria Giordano » Fri Nov 04, 2005 9: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:

Code: Select all  Expand view
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
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 74 guests