Page 1 of 1

Editing xbrowse cell

Posted: Thu Sep 02, 2021 6:40 pm
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.

Re: Editing xbrowse cell

Posted: Thu Sep 02, 2021 7:11 pm
by nageswaragunupudi
Set

Code: Select all | Expand


oCol:nEditType := EDIT_GET
 

All the cells with this edittype can be edited inline.

Re: Editing xbrowse cell

Posted: Thu Sep 02, 2021 7:25 pm
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.

Re: Editing xbrowse cell

Posted: Fri Sep 03, 2021 2:35 am
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.

Re: Editing xbrowse cell

Posted: Fri Sep 03, 2021 7:18 pm
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

Re: Editing xbrowse cell

Posted: Sat Sep 04, 2021 4:50 am
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