I always use edit boxes with an xbrowse, but this time I want to do the editing of some columns directly on the browse.
The values for the columns is drawn from a data object ( database ).
Here is the code I am using:
In column 1 and 2 I have logical fields and want to simply click on them to change the value ( or touch them on a touch screen device ).
On columns 6 & 8 I have small fields where I want to insert a value. If I click on them I can type in data but when I leave the field the data disappears.
The other columns are not to be edited.
So what do I need to add to make this work ? Thanks
The values for the columns is drawn from a data object ( database ).
Here is the code I am using:
REDEFINE XBROWSE oLBx8 ID 496 OF oFld:aDialogs[7]
// Attach the database
oLBx8:setoDBF( oInsp )
add oCol to oLBx8 header "Pass" data oInsp:svcpas SIZE 40 ALIGN CENTER EDITABLE
oCol:setcheck( )
add oCol to oLBx8 header "N/A" data oInsp:svcnap SIZE 40 ALIGN CENTER EDITABLE
oCol:setCheck( )
add oCol to oLBx8 header "Code" data oInsp:svccod SIZE 100 ALIGN LEFT
add oCol to oLBx8 header "Category" data oInsp:svccat SIZE 100 ALIGN LEFT
add oCol to oLBx8 Header "Item" data oInsp:svcla1 SIZE 80 ALIGN LEFT
add oCol to oLBx8 Header "Value" data oInsp:svcva1 SIZE 80 ALIGN LEFT EDITABLE
add oCol to oLBx8 Header "Item" data oInsp:svcla2 SIZE 80 ALIGN LEFT
add oCol to oLBx8 Header "Value" data oInsp:svcva2 SIZE 80 ALIGN LEFT EDITABLE
add oCol to oLBx8 Header "Detail" data oInsp:svcdes SIZE 400 ALIGN LEFTIn column 1 and 2 I have logical fields and want to simply click on them to change the value ( or touch them on a touch screen device ).
On columns 6 & 8 I have small fields where I want to insert a value. If I click on them I can type in data but when I leave the field the data disappears.
The other columns are not to be edited.
So what do I need to add to make this work ? Thanks
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit