ListViewSupport Demo project
Posted: 27 Jan 2024 12:13
** listViewSupport_Demo demonstrates use of the the glinda_LISTVIEW package.
This package supports
* automatic sizing of a listview control to fit contents and resizing of the containing dialog,
* automatic setting of column widths and right alignment of numeric and date fields,
* simple field editing,
* various return value options are possible, including returning only the changed values in an edited listview control or specific fields of a selected row
For demonstration, the directory "Data Files" under the "Exe64" directory contains several sample CSV files.
These files all have the extension "csv" but have different field separators, e.g. comma, semicolon, tab, or pipe
Also, some sample files have quoted fields and some do not.
For more information, see the HTML or MD files in the glinda_LISTVIEW package folder.
The csvReader_PKG included in listViewSupport_Demo is a convenient way to read character-separated text files.
Field separators are automatically detected by a csvSpy object.
Valid separators are ',', ';', tab and '|' characters
Quoted fields, if any, are parsed and dequoted automatically.
A valid data row can have any number of quoted fields.
Escaped and embedded quotes are NOT handled, however.
Labelled versus unlabelled file handling is controlled by the csvReader constructors.
** ListViewSupport_Demo.zip updated Feb. 27, 2024, to fix problem with text file inclusion constant noted by drspro2 below. There are no changes in the two demonstration packages.
This package supports
* automatic sizing of a listview control to fit contents and resizing of the containing dialog,
* automatic setting of column widths and right alignment of numeric and date fields,
* simple field editing,
* various return value options are possible, including returning only the changed values in an edited listview control or specific fields of a selected row
For demonstration, the directory "Data Files" under the "Exe64" directory contains several sample CSV files.
These files all have the extension "csv" but have different field separators, e.g. comma, semicolon, tab, or pipe
Also, some sample files have quoted fields and some do not.
For more information, see the HTML or MD files in the glinda_LISTVIEW package folder.
The csvReader_PKG included in listViewSupport_Demo is a convenient way to read character-separated text files.
Field separators are automatically detected by a csvSpy object.
Valid separators are ',', ';', tab and '|' characters
Quoted fields, if any, are parsed and dequoted automatically.
A valid data row can have any number of quoted fields.
Escaped and embedded quotes are NOT handled, however.
Labelled versus unlabelled file handling is controlled by the csvReader constructors.
** ListViewSupport_Demo.zip updated Feb. 27, 2024, to fix problem with text file inclusion constant noted by drspro2 below. There are no changes in the two demonstration packages.