Editing xbrowse cell

Editing xbrowse cell

Postby wartiaga » Thu Sep 02, 2021 6: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.
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am

Re: Editing xbrowse cell

Postby nageswaragunupudi » Thu Sep 02, 2021 7:11 pm

Set
Code: Select all  Expand view  RUN

oCol:nEditType := EDIT_GET
 

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Editing xbrowse cell

Postby wartiaga » Thu Sep 02, 2021 7:25 pm

nageswaragunupudi wrote:Set
Code: Select all  Expand view  RUN

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.
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am

Re: Editing xbrowse cell

Postby nageswaragunupudi » Fri Sep 03, 2021 2:35 am

If you set
Code: Select all  Expand view  RUN

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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Editing xbrowse cell

Postby wartiaga » Fri Sep 03, 2021 7:18 pm

nageswaragunupudi wrote:If you set
Code: Select all  Expand view  RUN

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
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am

Re: Editing xbrowse cell

Postby nageswaragunupudi » Sat Sep 04, 2021 4:50 am

Please try
Code: Select all  Expand view  RUN
     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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests