FastEdit en xBrowse

Post Reply
User avatar
acuellar
Posts: 1312
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

FastEdit en xBrowse

Post by acuellar »

Hola amigos
Cómo hago para que pulsando ENTER o doble Cick ejecute una funcion y cuando pulse F2 edite el campo (Igual al explorer de windows)
Con el doble Click no hay problema.
Tengo esto:

Code: Select all

  oCol:=oBrw:AddCol()
   oCol:bStrData  := { || NOMBRE }
   oCol:nHeadStrAlign := AL_CENTER
   oCol:cHeader:= "NOMBRE"
   oCol:nWidth:=250
   oCol:nEditType := EDIT_GET
   oCol:bOnPostEdit := {|o, v, n| DATOS->NOMBRE:=v }
   oCol:bLDClickData:={ || Funcion() }

  oBrw:bKeyDown:={ |nKey| if(nKey=VK_RETURN,Funcion(), ),iif(nKey=VK_F2, __KeyBoard(Chr(13)), ) }
 
Gracias por la ayuda

Saludos,

Adhemar
Saludos,

Adhemar C.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FastEdit en xBrowse

Post by nageswaragunupudi »

Code: Select all

oBrw:lF2KeyToEdit := .t.   // default .f.
oBrw:lEnterKey2Edit := .f. // default
 
After this code, please assign your action to Enter key
Regards

G. N. Rao.
Hyderabad, India
User avatar
Eoeo
Posts: 222
Joined: Mon Jun 04, 2012 12:00 pm

Re: FastEdit en xBrowse

Post by Eoeo »

this are on last version of xbrowse ? and wich other key is inserted ?
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FastEdit en xBrowse

Post by nageswaragunupudi »

FWH 10.6
Regards

G. N. Rao.
Hyderabad, India
User avatar
acuellar
Posts: 1312
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: FastEdit en xBrowse

Post by acuellar »

Thanks G. N. Rao.

Is now better

When I edit with F2 changes performed by pressing enter executes the action of the enter.

Double click to edit and run the action,

Regards,

Adhemar
Saludos,

Adhemar C.
Post Reply