Pelles C forum

Pelles C => Projects developed with Pelles C => Topic started by: John Z on August 01, 2021, 04:25:26 PM

Title: vCardz_i an address book/contact list program
Post by: John Z on August 01, 2021, 04:25:26 PM
Here is a feature packed VCF contact/address book like program written using Pelles C.  In addition to using Pelles C it uses fGdiPlusFlat.h header created by Frankie for GDIPlus under C.

The program itself is under a Meg but the full package is too big to add as an attachment here (Maybe Pelles Web needs to increase the 1MB limit  to 2-3MB?) so it can be found at https://sourceforge.net/projects/vcardz/ or direct download at https://sourceforge.net/projects/vcardz/files/latest/download unzip and run nothing installed, no registry entries. Can even be run from a USB drive.

Over 9000 10,005 12,535 15730 17388 downloads across 145 147 151 158 164 countries but not very much feedback. I know the esteemed Pelles C followers are not shy about feedback. ;)  Missing features, errors, etc. all welcome, just don't beat me up about my linguine code style ;(

Some features I'm proud of creating: 
Ability to pin a filename and directory name to each MRU list so that they are always available even if the list is cleared or adds exceed entries causing rollover. Wouldn't mind if Pelle added this to the IDE. Very handy.
ODF spreadsheet export in two layouts. ODS can be opened by LibreOffice and EXCEL 2007 and newer.
Resizing the window, it does not use the Pelles Resizer lib but I think works fairly well.  Try it with Auto Font turned on too, even full screen.
Huge help file, including context sensitive help.  Help file is bigger than the exe :)

Hope it is useful,

John Z

Title: Re: vCardz_i an address book/contact list program
Post by: frankie on August 01, 2021, 05:20:55 PM
nice  :)
Title: Re: vCardz_i an address book/contact list program
Post by: Grincheux on August 27, 2021, 05:07:37 PM
Hi John,

There is a bad drawing in the note box as soon as you use the bak key to correct a word.
I can't enter my e-mail.

I often use the TAB key to navigate from one field to an other, here I don't know where I am.
If you put the cursor an a edit field, it is not selected.

Quote
The newer vcard specification only references three address types Home, Work and Other so every address selection may not show data.
Ok but if you fill a home address and after select an other kind of address then go back the home address, one part is lost. Right part.

See the picture attached you will have an idea.
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on August 27, 2021, 10:20:46 PM
Thanks Sir Grincheux,

I'll check out using the backspace key, I don't recall ever trying that......  When the text looks like the picture shows, moving the scroll bar will redraw, but I know that is not optimum.

I do see in your screen shot you are not in the EDIT mode so no changes would be saved they would only be temporary. Therefore as one selected another address type the old data would be restored when selecting the address again.  To actually edit or change card data the program must be in the edit mode.   

Tabbing - yes, I was depending on the cursor for one to see where they are and the tabs follow the logical flow of data entry.  I'll consider an option to 'select' after a tab to a field, that might satisfy both preferences users might have.  Or I might make a very visible cursor  ;D

Thanks for your inputs!

John Z

Update - yup Backspace key definitely suboptimum in View mode, and if no scroll bars are present no way to redraw either. 
I'll also need to check backspace when in the EDIT mode too.  (yee in edit mode too)

Update #2 - Very strange.  It is just a standard edit box, like all the others, but with multiline enabled.  When multiline disabled the backspace key works as expected as does the edit box 'redraw'/update.  When multiline is enabled the backspace key action and 'redraw'/update goes haywire.
Title: Re: vCardz_i an address book/contact list program
Post by: Grincheux on August 28, 2021, 01:10:29 PM
I qill test again and send you my feedback.
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on August 28, 2021, 02:45:14 PM
I qill test again and send you my feedback.

Not yet I have not come up with a solution yet !   :(

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: Stefan Pendl on August 28, 2021, 04:50:49 PM
I do see in your screen shot you are not in the EDIT mode so no changes would be saved they would only be temporary.

to better distinguish between edit and view mode, disable the controls or make them read-only.
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on August 28, 2021, 05:33:07 PM
to better distinguish between edit and view mode, disable the controls or make them read-only.

Thanks Stefan- I did think about that when 'designing' but felt being able to make temporary edits for printing would be nice. Also I was thinking it would make it easier to copy a field to paste into something else.  I'll ponder it some more  and see if I can modify and satisfy both thoughts perhaps read-only but switchable by some keyboard trickery.  Attached is an example screen shot that is in the Edit Mode.  I'll admit scope creep had a role in this.  The original thought was to display but not edit, then .....

Thanks for the input.

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on August 30, 2021, 01:38:34 PM
There is a bad drawing in the note box as soon as you use the bak key to correct a word.

Well finally figured out the Backspace issue.  Now to see about TAB and possibly Read-Only mode.
No new version until I finish with these two items - so don't download yet  :)

The risk with select all when using TAB is that it becomes very easy to accidentally delete. Of course if I make the initial screen read-only that would be solved too.   Still thinking about an approach.

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on August 31, 2021, 05:38:27 PM
Here is a version to test  :).  It is not the full install because just the help file is bigger than this site allows to be uploaded. I'll update sourceforge after a bit more testing.  This exe can just replace the one, or rename it, and put in the same directory as the prior release.  Then you can try it.

Changes in 2.1.4.0:
Added Toolbar button as indicator of default Read Only mode
 clicking it explains how to enter Edit mode
Added TAB autoselect of a fields text, if there is any, when tabbing used.
  When TAB used in Read Only mode only the 1st character is selected
  When TAB used in Edit mode all text in the field is selected
 
Fixed display bug when using backspace or delete key in the multiline
 'Extras' box.

I think this addresses most concerns and won't impact prior users when they, if they, get the new version.

John Z

Update 9/1/2021 New release live now on sourceforge.
Title: Re: vCardz_i an address book/contact list program
Post by: Grincheux on September 21, 2021, 07:57:26 PM
Sorry John I had no time to test your program.  :-[
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on September 22, 2021, 12:49:26 PM
Hey - no problem.  I see you have been knee deep in CFE!  A lot of work there.  Anything as big as CFE is going to take a lot of time just for testing not even considering time to develop improvements.

Forum has been quiet since Pelle went on vacation .....;)

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: Grincheux on September 22, 2021, 06:16:43 PM
Yes, I saw. Yestirday I had 5 messages that I had not read, only!
I had a lot of work with my job and was very tired.
When I am retired, I drop the phone and stop the car for a long time.
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on November 09, 2021, 04:06:57 PM
Thanks Sir Grincheux!

Inspired me to make some cosmetic improvements to the vCardz_i program.
A new version is posted on SourceForge - https://sourceforge.net/projects/vcardz/ 
and implements some of your improvement suggestions, but not all  :) :( 

Current version 2.1.5 lifetime statistics: 10,185 downloads across 147 countries.

Cheers,
John

Title: Re: vCardz_i an address book/contact list program
Post by: John Z on May 14, 2022, 03:32:00 PM
In case any forum member are using vCardz_i - A new version is posted on SourceForge - https://sourceforge.net/projects/vcardz/  which was updated using Pelles C version 11.  Version 2.5.3.2 has many improvements over 2.1.5 mentioned above. 

Feedback always welcome.

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on July 10, 2022, 01:49:36 PM
Well I finally got everything fixed that broke when implementing the manifest for version 6.0.0 controls.
It was a surprise, but shouldn't have been I guess, that an upgrade to newer control version impacted (adversely)
the original program capabilities.  Thanks Micro$oft.

Anyway version 2.6.3.1 is released on SourceForge for those interested in vcf, xml, or json contact cards.
All Pelles C version 11, except the inclusion of XLSXio DLL for exporting to XLSX files.  I could have written this too
as I did for ODF format ODS spreadsheet but decided to give it a try.  It works well for simple output, see attachment
Found at https://sourceforge.net/projects/xlsxio/  but is also on Github at https://brechtsanders.github.io/xlsxio/

If you find a similar vcard program that does more than mine let me know how much they charge you... :)
https://sourceforge.net/projects/vcardz/   (15K+ downloads, 155 countries)

One tip - always use the resource file to include the manifest.

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on November 01, 2023, 03:03:48 PM
Version 2.7.2 of this Swiss army knife of vcards is using Pelles C v12 and tested on Win 11.
https://sourceforge.net/projects/vcardz/

Over 16k downloads and 161 countries (over the lifetime of course).

It is still 32 bit.  Working on a 64 bit version mostly complete except for the zip portion for ODS.

Anyway if you need to do almost anything with vcards in vcf, xml, or json format try it out.
It also can create QR's from vcard data or your own entered text.

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on January 23, 2024, 09:50:25 PM
vCardz_i Version 2.7.3 of this Swiss army knife of vcards (VCF, XML and JSON) using Pelles C v12 and tested on Win 11 - includes a 64 bit version as well as 32.

New Dark Mode added. :)

John Z
Title: Re: vCardz_i an address book/contact list program
Post by: John Z on April 10, 2024, 01:55:51 PM
vCardz_i updated to version 2.8.1 with a few new features.
Mainly a Batch Rename procedure.

Executable download at https://sourceforge.net/projects/vcardz/

Lifetime downloads 17,388 across 164 countries  :)

All just Pelles C 64 bit now.

John Z