PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: John Messingham on October 08, 2004, 07:35:45 PM

Title: Listview Checkboxes
Post by: John Messingham on October 08, 2004, 07:35:45 PM
Hi,

Is there a way to programatically check a listview item?

Many Thanks
John Messingham
Title: Listview Checkboxes
Post by: Roger Garstang on October 08, 2004, 07:46:23 PM
Yes, it isn't as clean as other options, but there is an example on PB's site and maybe even the web.  It involves using a mask and other weirdness.

I use the API Macros like ListView_GetCheckState(HWND_ListView, index), ListView_SetCheckState(HWND_ListView, index, bCheck), etc.
Title: Listview Checkboxes
Post by: John Messingham on October 08, 2004, 08:39:52 PM
Many Thanks
Title: Listview Checkboxes
Post by: John Messingham on October 09, 2004, 08:24:34 AM
Hi,

As I am on a learning curve with PowerBasic, where can I get details of API Macros.
Title: Listview Checkboxes
Post by: TechSupport on October 09, 2004, 09:12:52 AM
These are the Help files that I use:

       ftp://ftp.borland.com/pub/delphi/techpubs/delphi2/win32.zip

       ftp://ftp.borland.com/pub/bcppbuilder/techpubs/bcb5/b5ms.zip

The MSDN library also describes all functions:
http://msdn.microsoft.com

I also own the following books that are really good:
http://www.amazon.com/exec/obidos/ASIN/1571690093/planetsquires-20/102-3673214-6087343?creative=327641&camp=14573&link_code=as1

http://www.amazon.com/exec/obidos/ASIN/157231995X/planetsquires-20?creative=327641&camp=14573&link_code=as1

http://www.amazon.com/exec/obidos/ASIN/0201634929/planetsquires-20?creative=327641&camp=14573&link_code=as1
Title: Listview Checkboxes
Post by: John Messingham on October 09, 2004, 09:29:35 AM
Cheers Paul,

I will do some delving, I have been in the VB shell for to long.