Help with fGet

Help with fGet

Postby ralph » Sat Apr 15, 2006 1:54 am

I have posted this problem in the spanish forum, but no one has responded. The author of the excelent class fGet (Ramon Avendaño) seems to be out of our world. Any help will be welcome

Please try this little test program :

Code: Select all  Expand view  RUN
#include "FiveWin.ch"
#include "FGet.ch"

static oWnd
function Main()
   DEFINE WINDOW oWnd FROM 1, 1 TO 400, 400 PIXEL;
      MDI TITLE "Test fGet"
   ACTIVATE WINDOW oWnd ON INIT new()
return nil

//----------------------------------------------------------------------------//
Function New()
   local oWndChild, oFGet
   static nChild := 0
   DEFINE WINDOW oWndChild OF oWnd ;
             MDICHILD ;
             TITLE "FGet " + LTrim( Str( ++nChild ) )
   oWndChild:Cargo := "THIS IS A LONT TEXT AND WILL DISSAPEAR WHEN YOU SCROLL HORIZONTALLY, TRY TO CORRECT THIS PROBLEM"

   @ -1024, -1024 FORMAT GET oFget VAR oWndChild:Cargo OF oWndChild  HSCROLL

   oWndChild:SetControl( oFGet )
   oWndChild:oControl:SetFocus()
return nil

When you run the program in Windows Xp/ 2000 and you scroll the text horizontally, the text disappears. It seems to be a problem with the function DrawfGetLine(), but my knowledge of "C" is poor .

Please send me a help! (I use FWH 2.7 jan + xHb 0995)


Ralph
User avatar
ralph
 
Posts: 79
Joined: Fri Nov 18, 2005 11:15 pm
Location: Lima - PERU

Postby Antonio Linares » Sat Apr 15, 2006 10:10 am

Ralph,

You may use the Class TRichEdit which it is Win32 standard and offers much more possibilities. Please review samples\TestRtf.prg and TestRich.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ralph » Sat Apr 15, 2006 5:08 pm

Hi Antonio:

It would be a pity to have to abandone this class, just by lack of maintenance, but anyway.

I will try to modify my preview program to use Richedit class. I read that were many bugs corrected since the version I use (FWH 2.7 january), so I will thank you a lot if you send me the last version of this class to my private email (rdelcastillo@consorcioinformatico.com)


Ralph
User avatar
ralph
 
Posts: 79
Joined: Fri Nov 18, 2005 11:15 pm
Location: Lima - PERU

Postby Antonio Linares » Sat Apr 15, 2006 6:10 pm

Ralph,

There have been many enhancements with new features on Class TRichEdit but the actual one that you have samples\TestRtf.prg should work ok.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests