FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bug in TRichEdit
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TRichEdit
Posted: Tue Feb 28, 2006 11:21 AM
This is the sample. Try to hit any alphabetic key. It will be rejected:

#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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TRichEdit
Posted: Tue Feb 28, 2006 02:43 PM

Enrico,

Quite curious. On a window it works ok. And on a dialog only accepts numbers... :shock:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 113
Joined: Wed Feb 08, 2006 10:32 PM
Bug in TRichEdit
Posted: Tue Feb 28, 2006 04:02 PM

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

Roberto Chiaiese
R&C Informatica S.n.c.
https://www.recinformatica.it
info@recinformatica.it

Harbour 3.2 - FW2512

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TRichEdit
Posted: Wed Mar 01, 2006 07:50 AM

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,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 113
Joined: Wed Feb 08, 2006 10:32 PM
Bug in TRichEdit
Posted: Wed Mar 01, 2006 11:16 PM

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

Roberto Chiaiese
R&C Informatica S.n.c.
https://www.recinformatica.it
info@recinformatica.it

Harbour 3.2 - FW2512

Posts: 113
Joined: Wed Feb 08, 2006 10:32 PM
Bug in TRichEdit
Posted: Wed Mar 01, 2006 11:37 PM

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

Roberto Chiaiese
R&C Informatica S.n.c.
https://www.recinformatica.it
info@recinformatica.it

Harbour 3.2 - FW2512

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TRichEdit
Posted: Thu Mar 02, 2006 07:51 AM
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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TRichEdit
Posted: Fri Mar 03, 2006 12:09 AM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TRichEdit
Posted: Fri Mar 03, 2006 08:35 AM

Great! But get ready for more bug reports in this class. :-)

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TRichEdit
Posted: Fri Mar 03, 2006 09:07 AM

Enrico,

No problem, your feedback is always welcome :)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 113
Joined: Wed Feb 08, 2006 10:32 PM
Bug in TRichEdit
Posted: Fri Mar 03, 2006 03:20 PM

Antonio,
Objects like bitmaps are also shown now ?

Roberto

Roberto Chiaiese
R&C Informatica S.n.c.
https://www.recinformatica.it
info@recinformatica.it

Harbour 3.2 - FW2512

Continue the discussion