FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Bug in TGet [Fixed]
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TGet [Fixed]
Posted: Sat Nov 05, 2016 05:55 PM
In the following sample, please change the number and press TAB. The new number doesn't properly align to right.

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    LOCAL cCli := 23

    DEFINE DIALOG oDlg

    @ 1, 1 GET cCli SIZE 100, 13 RIGHT

    @ 3, 1 BUTTON "Chiudi";
           ACTION oDlg:End()

    ACTIVATE DIALOG oDlg

    RETURN NIL


EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TGet
Posted: Mon Nov 07, 2016 05:14 PM
Enrico,

This seems as a valid temporary solution:
Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg, oGet

    LOCAL cCli := 23

    DEFINE DIALOG oDlg

    @ 1, 1 GET oGet VAR cCli SIZE 100, 13 RIGHT ;
       VALID ( oGet:Refresh(), .T. ) 

    @ 3, 1 BUTTON "Chiudi";
           ACTION oDlg:End()

    ACTIVATE DIALOG oDlg

    RETURN NIL
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TGet
Posted: Mon Nov 07, 2016 06:02 PM

Thank you. It's not something that I need to use. I only noticed this problem and reported here. :-)

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TGet
Posted: Mon May 08, 2017 12:18 PM

This bug is still not fixed.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TGet
Posted: Mon May 08, 2017 04:53 PM
Enrico,

Please add these lines at the end of Class TGet Method KeyChar()

Code (fw): Select all Collapse
  #ifndef __CLIPPER__
               if nKey == VK_RETURN  // Execute DEFPUSHBUTTON Action
                  ::Super:KeyChar( nKey, nFlags )
               endif
           #endif

           if lAnd( ::nStyle, ES_RIGHT )  // new
              ::Refresh()                 // new
           endif                          // new 

           return 0
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TGet
Posted: Mon May 08, 2017 05:03 PM

Changes included in FWH 17.05

many thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion