FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Bug in TCBrowse:lEditCol() method (fixed)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TCBrowse:lEditCol() method (fixed)
Posted: Mon Oct 31, 2005 05:40 PM
This is the sample. Valid is never executed:

#include "Fivewin.ch"
#include "Tcbrowse.ch"


FUNCTION MAIN()

    LOCAL oDlg, oBrw, cVar

    LOCAL bValid := { || MsgInfo(), .T. }

    USE C:\XHARBOUR\TEST

    cVar = FIELD -> first

    DEFINE DIALOG oDlg SIZE 300, 300

    @ 0, 0 BROWSE oBrw;
           ON RIGHT CLICK oBrw:lEditCol( 1, @cVar, , bValid )

    ADD COLUMN TO oBrw;
               DATA TEST -> first;
               HEADER "FIRST"

    @ 6, 0 BUTTON "Close";
           ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Bug in TCBrowse:lEditCol() method (fixed)
Posted: Sat Nov 26, 2005 11:32 AM

Fixed. Please change this in source\classes\tcbrowse.prg line 863:

@ 10, 0 BUTTON oBtn PROMPT "" ACTION ( oBtn:SetFocus(), oDlg:End(), lOk := .t. ) OF oDlg

Also, to get a better screen position change this in line 868:

ACTIVATE DIALOG oDlg ;
ON INIT ( oDlg:Move( aDim[ 1 ] + 1, aDim[ 2 ] + 1,;

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TCBrowse:lEditCol() method (fixed)
Posted: Sat Nov 26, 2005 04:40 PM

Great, thank you!

EMG

Continue the discussion