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
XBROWSE lFastEdit in some columns
- MarcoBoschi
- Posts: 1078
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Been thanked: 1 time
- Contact:
-
- Posts: 1272
- Joined: Mon Feb 25, 2008 2:54 pm
- Location: Brasil/PR/Maringá
- Been thanked: 1 time
- Contact:
- MarcoBoschi
- Posts: 1078
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Been thanked: 1 time
- Contact:
Re: XBROWSE lFastEdit in some columns
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.
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
info@marcoboschi.it
- cnavarro
- Posts: 6661
- Joined: Wed Feb 15, 2012 8:25 pm
- Location: España
- Has thanked: 9 times
- Been thanked: 12 times
Re: XBROWSE lFastEdit in some columns
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?
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
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
- MarcoBoschi
- Posts: 1078
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Been thanked: 1 time
- Contact:
Re: XBROWSE lFastEdit in some columns
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
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
info@marcoboschi.it
- cnavarro
- Posts: 6661
- Joined: Wed Feb 15, 2012 8:25 pm
- Location: España
- Has thanked: 9 times
- Been thanked: 12 times
Re: XBROWSE lFastEdit in some columns
Ok, try this sample, and tell me if it's what you need
Code: Select all | Expand
#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
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
- MarcoBoschi
- Posts: 1078
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Been thanked: 1 time
- Contact:
Re: XBROWSE lFastEdit in some columns
Many thanks it's very very interesting 

Marco Boschi
info@marcoboschi.it
info@marcoboschi.it