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.
Editing xbrowse cell
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Editing xbrowse cell
Set
All the cells with this edittype can be edited inline.
Code: Select all | Expand
oCol:nEditType := EDIT_GET
All the cells with this edittype can be edited inline.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Editing xbrowse cell
nageswaragunupudi wrote:SetCode: 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.
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Editing xbrowse cell
If you set
Then the cell is ready for edit and if the user presses any key, the edit will start with that key.
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
G. N. Rao.
Hyderabad, India
Re: Editing xbrowse cell
nageswaragunupudi wrote:If you setCode: 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
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Editing xbrowse cell
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
G. N. Rao.
Hyderabad, India