[Implemented] Multiselect listview

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Multiselect listview

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

I know that the new version introduces multiple selection in the Listiconview, it would be nice to have this functionality in a listview, specially a listview with the LBS_MULTIPLESEL style, that is very handy because you don't need to use the keyboard to make a multiple selection, just click to select or unselect multiple items.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Just pass this flag to the listview .

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

Great, and it seems that other styles also work. But it was not in the help files.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Of course, it breaks cross OS compatibilty..

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

Do you mean that style will work only in Windows OS (all versions)?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Yes.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Great [...] But it was not in the help files.

In a previous dicussion here, it was pointed out that PureBasic's docs can't
contain everything that Windows uses for programming, as the file size would
be absolutely gigantic. That's why the docs don't include them. There are
lots of sites that hold data about constants, flag settings, and so on; you
should download this one for starters and have a browse (143k):

http://www.mvps.org/vb/code/Win32api.zip

When reading it, do a search for LBS_MULTIPLESEL and you'll see it listed with
other ListBox style flags, as well as other gadget flag settings nearby.


PB - Registered PureBasic Coder

Edited by - PB on 11 June 2002 01:59:15
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

What OS does it break under (I'm guessing Amiga)? I wrote some Blitz code to have multiple select listviews that you can have if you like (it used API commands for most stuff). All I ask is 1,000,000 dollars, mwoahahahaha.

/me put little finger in corner of mouth :wink:

I was also going to suggest using ReAction for the Amiga gadgets, as it has a lot of updated gadget types that gadtools does not. It would all be BOOPSI code, so you could still control your own event loop (I think), unlike MUI.

I'm surprised that you could not do mutliple select listviews under Linux (gtk is the one you use right?)


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.20)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

PB, i understand that the help file can't contain all that constants, but the flag parameter in the function syntax is not there!

This functionality is completely hidden for a beginner.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> PB, i understand that the help file can't contain all that constants, but the
> flag parameter in the function syntax is not there!

Sorry Justin; I thought you were unhappy that the constants weren't included.
My mistake! BTW, does the "quick help" feature show the flags parameter,
at the bottom of the editor? (I can't test at the moment). Usually this will
show the correct syntax if the docs are wrong...


PB - Registered PureBasic Coder

Edited by - PB on 11 June 2002 16:41:41
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

Yes, it is there. Nice feature, thanks.
Post Reply