FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Editing xbrowse cell
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Editing xbrowse cell
Posted: Thu Sep 02, 2021 06:40 PM

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.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Editing xbrowse cell
Posted: Thu Sep 02, 2021 07:11 PM
Set
Code (fw): Select all Collapse
oCol:nEditType := EDIT_GET

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



G. N. Rao.

Hyderabad, India
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: Editing xbrowse cell
Posted: Thu Sep 02, 2021 07:25 PM
nageswaragunupudi wrote:Set
Code (fw): Select all Collapse
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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Editing xbrowse cell
Posted: Fri Sep 03, 2021 02:35 AM
If you set
Code (fw): Select all Collapse
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
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: Editing xbrowse cell
Posted: Fri Sep 03, 2021 07:18 PM
nageswaragunupudi wrote:If you set
Code (fw): Select all Collapse
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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Editing xbrowse cell
Posted: Sat Sep 04, 2021 04:50 AM
Please try
Code (fw): Select all Collapse
      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

Continue the discussion