IonicWind Software

IWBasic => GUI Central => Topic started by: Brian on December 30, 2019, 05:44:34 AM

Title: Editable Listview
Post by: Brian on December 30, 2019, 05:44:34 AM
As part of another program I have been messing with, I needed a way to edit a text file. I looked around the forum, and an edit-in-place listview was the best option for me

Attached the program, and a text file to play with

On running, it loads up the test file into a listview. If the file is missing, it creates a dummy one for you to start with

All four columns of the listview are sortable
Each listview line is coloured alternately
There are tooltips for each button
You can add a blank line to the listview for a new entry
You can delete a line (one at a time)
You can select a line, and tab forwards and backwards on that line
You can close the program and save the data
Data is saved in the column sort order you last used
Or, you can close the program without saving the data

If you add more columns for your own use, set the variable LvCols to a different value for the tabbing to work correctly

Brian

Modification: If the file Dates.txt is missing, it now creates a new one, and inserts a blank entry for you. No need to restart the program

Initial zip file now replaced
Title: Re: Editable Listview
Post by: h3kt0r on December 30, 2019, 07:03:53 AM
Thanks for sharing !
Title: Re: Editable Listview
Post by: Andy on December 31, 2019, 06:34:39 AM
Brian,

Like the editable list view, may come in very useful over time.

Andy.
:)
Title: Re: Editable Listview
Post by: Brian on January 01, 2020, 05:19:02 AM
Program updated. See first post

Brian
Title: Calendar program
Post by: Brian on January 01, 2020, 10:59:09 AM
This program is a companion to the Dates Editor posted above. You can find it on the forum (somewhere) as Jonz Calendar. The problem with the original is that it didn't give you a lot of control on how the calendar was printed
I printed 2020 with the Jonz's version, and the dates were out of sync, with it being a leap year. All sorted now, and with a new interface
You can add up to five names to be printed with each day, good for birthdays of your family, etc. And it also gives their age in years next to the name
You can also omit certain months to be printed. In my case, I was printing the full year, and ran out of ink for August. When I got some ink, I had to start all over again, which I wasn't happy about
I have called it Brians Calendar, 'cos I'm not called Jon!
Of course, it imports and uses the dates and names from the Dates.txt file

Brian

PS: I have tried to combine the two programs, and I was successful, with no errors, but the sub-classing of the listview went all wrong, so I abandoned the idea. If anyone can put them both together, it would make it a lot neater
Title: Re: Editable Listview
Post by: Andy on January 02, 2020, 04:10:58 AM
Brian,

Are you trying to make the list view in the calendar program editable?

Is that the problem you had?

Andy.