FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour FastEdit en xBrowse
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
FastEdit en xBrowse
Posted: Wed Jun 06, 2012 10:17 PM
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 (fw): Select all Collapse
  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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: FastEdit en xBrowse
Posted: Mon Jun 11, 2012 09:50 AM
Code (fw): Select all Collapse
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
Posts: 222
Joined: Mon Jun 04, 2012 12:00 PM
Re: FastEdit en xBrowse
Posted: Mon Jun 11, 2012 01:41 PM

this are on last version of xbrowse ? and wich other key is inserted ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: FastEdit en xBrowse
Posted: Mon Jun 11, 2012 02:10 PM

FWH 10.6

Regards



G. N. Rao.

Hyderabad, India
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: FastEdit en xBrowse
Posted: Mon Jun 11, 2012 04:42 PM

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.

Continue the discussion