Editing xbrowse cell

Post Reply
wartiaga
Posts: 216
Joined: Wed May 25, 2016 1:04 am

Editing xbrowse cell

Post by wartiaga »

Hi,

When selecting an xbrowse row and clicking a button how can I put certain column of this row in edit mode? Position the cursor automatically in this column to be able to edit.

Thanks in advance.
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Editing xbrowse cell

Post by nageswaragunupudi »

Set

Code: Select all | Expand


oCol:nEditType := EDIT_GET
 

All the cells with this edittype can be edited inline.
Regards

G. N. Rao.
Hyderabad, India
wartiaga
Posts: 216
Joined: Wed May 25, 2016 1:04 am

Re: Editing xbrowse cell

Post by wartiaga »

nageswaragunupudi wrote:Set

Code: Select all | Expand


oCol:nEditType := EDIT_GET
 

All the cells with this edittype can be edited inline.


I know, but I want that cell enter in editing mode automaticaly, I dont want to press enter or double click in this cell.

Thanks.
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Editing xbrowse cell

Post by nageswaragunupudi »

If you set

Code: Select all | Expand


oBrw:lFastEdit := .t.
 

Then the cell is ready for edit and if the user presses any key, the edit will start with that key.
Regards

G. N. Rao.
Hyderabad, India
wartiaga
Posts: 216
Joined: Wed May 25, 2016 1:04 am

Re: Editing xbrowse cell

Post by wartiaga »

nageswaragunupudi wrote:If you set

Code: Select all | Expand


oBrw:lFastEdit := .t.
 

Then the cell is ready for edit and if the user presses any key, the edit will start with that key.


Thanks for your answer but i think i'm not clear. Look at first picture. After click ... button I want that cell enter in edit mode like if I pressed double click in this cell, look at second picture. Thanks.

https://ibb.co/J7xKn8x

https://ibb.co/mSn0T1G
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Editing xbrowse cell

Post by nageswaragunupudi »

Please try

Code: Select all | Expand

     WITH OBJECT oCol
         :nEditType  := EDIT_GET_BUTTON
         :bEditBlock := { |r,c,o| o:oBrw:PostMsg( WM_CHAR, 13 ), nil }
      END
 
Regards

G. N. Rao.
Hyderabad, India
Post Reply