Edit fields in TxBrowse

Edit fields in TxBrowse

Postby Rafael Clemente » Wed Jul 02, 2008 8:46 am

I am using a 3-column TxBrowse and I'd like to edit the three fields of a register, one after the other. For that, I am using three bPostEdit, one for each column:
Code: Select all  Expand view
bPostEdit1 := {|o,v,n|  iif( n != VK_ESCAPE, ::SaveField(1,v),)}
bPostEdit2 := {|o,v,n|  iif( n != VK_ESCAPE, ::SaveField(2,v),)}
bPostEdit3 := {|o,v,n|  iif( n != VK_ESCAPE, ::SaveField(3,v),)}

But that forces me to click on each of the three fields that I want to edit. Is there any way to make that once edited the first field, the cursor jumps automatically to the second, and enters it in edit mode?
Thanks
Rafael
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Postby Biel EA6DD » Wed Jul 02, 2008 10:03 am

Hi Rafael,

Set to true the property lFastEdit of xBrowse object.

Code: Select all  Expand view
oBrw:lFastEdit:=.T.
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Biel EA6DD
 
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca

Postby Rafael Clemente » Wed Jul 02, 2008 11:36 am

Biel:
Pefect!. Thanks
Rafael
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests