FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE lFastEdit in some columns
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
XBROWSE lFastEdit in some columns
Posted: Wed Apr 02, 2025 08:12 AM

Hi is it possible to set only for some columns lFastedit?

Actually I set only in this way but oBrw:lFastEdit = .T. this piece of code set all columns. My desire is to have some columns not editable and other editable

Many Thanks

Marco Boschi
info@marcoboschi.it
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: XBROWSE lFastEdit in some columns
Posted: Wed Apr 02, 2025 12:12 PM

try

oBrw:aCols[1]:nEditType := EDIT_NONE

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: XBROWSE lFastEdit in some columns
Posted: Wed Apr 02, 2025 02:54 PM

Yes but is not exactly what I desire. I want to set some colunns as oCol:nEditType = EDIT_GET and a only few of these also lFastEdit

In the guide I see "If true, editable columns go to edit mode just pushing an alpha or digit character. This feature is incompatible with Incremental seek and is only available when the marquee style is cell based.

Marco Boschi
info@marcoboschi.it
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: XBROWSE lFastEdit in some columns
Posted: Thu Apr 03, 2025 05:50 AM

Marco, I'm not sure I fully understand your approach and objective.

Wouldn't it be more appropriate to configure lFastEdit := .F., and configure oCol:nEditType only on the editable columns?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: XBROWSE lFastEdit in some columns
Posted: Thu Apr 03, 2025 06:34 AM

IF oBrw:lFastEdit = .F. and a column is oCol:nEditType = EDIT_GET I have to press Enter to modify the value

of the column

IF oBrw:lFastEdit = .T. and a column is always oCol:nEditType = EDIT_GET

IF I press alpha or digit characters I can modify the value of the column

For some columns I want this behavior but only for some not all of them

I've tried oCol:lFastEdit = .T. unsuccessful

Marco Boschi
info@marcoboschi.it
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: XBROWSE lFastEdit in some columns
Posted: Thu Apr 03, 2025 10:11 AM
Ok, try this sample, and tell me if it's what you need
#include "fivewin.ch"

FUNCTION Main()
     LOCAL i
     
     REQUEST DBFCDX
     RddSetDefault( "DBFCDX" )
     set DATE FRENCH
     SET CENTURY ON
     SET EPOCH TO Year( Date() ) - 40

     // Please change path
     USE d:\fwh\fwhteam\samples\customer NEW SHARED
     
     XBROWSER "customer" TITLE "Prueba Botones y Excel" SETUP ;
               (  oBrw:lFastEdit  := .F., ;
                  oBrw:aCols[ 1 ]:nEditType := oBrw:aCols[ 3 ]:nEditType := EDIT_GET, ;
                  oBrw:bKeyChar  := { | nKey, nFlags, oB, oCol | if( oCol:nEditType == 0, nil, ;
                                        if( oCol:lEditable .and. oCol:IsEditKey( nKey ), oCol:Edit( nKey ), ) ) } ;
                  )
RETURN nil
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: XBROWSE lFastEdit in some columns
Posted: Thu Apr 03, 2025 02:28 PM
Many thanks it's very very interesting :idea:
Marco Boschi
info@marcoboschi.it

Continue the discussion