Page 1 of 1
Bug in TRichEdit
Posted: Tue Feb 28, 2006 11:21 am
by Enrico Maria Giordano
This is the sample. Try to hit any alphabetic key. It will be rejected:
Code: Select all | Expand
#include "Fivewin.ch"
#include "Richedit.ch"
FUNCTION MAIN()
LOCAL hDll := LOADLIBRARY( "RICHED20.DLL" )
LOCAL oDlg
LOCAL oRich, cVar := ""
DEFINE DIALOG oDlg
@ 0, 0 RICHEDIT oRich VAR cVar
ACTIVATE DIALOG oDlg;
ON INIT oDlg:SetControl( oRich );
CENTER
FREELIBRARY( hDll )
RETURN NIL
EMG
Posted: Tue Feb 28, 2006 2:43 pm
by Antonio Linares
Enrico,
Quite curious. On a window it works ok. And on a dialog only accepts numbers...

Posted: Tue Feb 28, 2006 3:49 pm
by Enrico Maria Giordano
Exactly.
EMG
Posted: Tue Feb 28, 2006 4:02 pm
by chiaiese
The sample found in FWH (2.5) TestRich.prg works on a dialog (resource).
It accepts characters too
but if I try to open an existing file it returns the error:
"unrecoverable error 9010: hb_xfree() invalid pointer 004ec06e select the file"
regards
Roberto Chiaiese
Posted: Wed Mar 01, 2006 7:50 am
by Antonio Linares
Roberto,
Yes, and TestRich.prg keeps working ok in FWH 2.7. It looks as it works ok from resources, but not from source code on a dialog.
With the current Harbour and xharbour versions the error you describe (hb_xfree()) no longer happens.
We keep searching,
Posted: Wed Mar 01, 2006 11:16 pm
by chiaiese
The Richedit control does not show bitmaps also.
I'm able to open an rtf file from disk only if I pass its name as a parameter (not trough the button on the sample dialog)
However the control only shows text, not embedded or linked bitmaps
Roberto
Posted: Wed Mar 01, 2006 11:37 pm
by chiaiese
I found two dll in my windows directory riched20.dll and riched32.dll
anyone knows the difference ?
I tried both but without any difference, same bugs
Roberto
Posted: Thu Mar 02, 2006 7:51 am
by Enrico Maria Giordano
chiaiese wrote:I found two dll in my windows directory riched20.dll and riched32.dll
anyone knows the difference ?
I tried both but without any difference, same bugs
Roberto
The second is only a wrapper to the first (note the small size).
EMG
Posted: Fri Mar 03, 2006 12:09 am
by Antonio Linares
Enrico,
Fixed the problem in dialogs!

We are going to re-publish the March build in a few minutes with the new changes and enhancements on Class TRichEdit.
Posted: Fri Mar 03, 2006 8:35 am
by Enrico Maria Giordano
Great! But get ready for more bug reports in this class.

EMG
Posted: Fri Mar 03, 2006 9:07 am
by Antonio Linares
Enrico,
No problem, your feedback is always welcome

Posted: Fri Mar 03, 2006 3:20 pm
by chiaiese
Antonio,
Objects like bitmaps are also shown now ?
Roberto