Jump to content
Sign in to follow this  
Rozek

unusual selection behaviour of list control

Recommended Posts

Rozek

Hello!

As I could not find an answer myself, neither in the online-help nor in this forum, I'll try my luck with this posting:

a list control built with

GUICtrlCreateList("", ..., BitOR($LBS_SORT,$LBS_MULTIPLESEL,$WS_BORDER))

and then filled with multiple items does not behave as "usual" when clicking into it:

  • clicking multiple times (but not too fast) on the same item toggles its selection (that's ok);
  • clicking on an item (with another one already beeing selected) selects the new item even if neither the Ctrl nor the Shift key is pressed simultaneously). Especially, the old item is not deselected;
  • clicking on an item (with another one already beeing selected) while depressing the Shift key only selects the new item even and not also those between the first and the new item.
How can I achieve standard selection behaviour of list controls?

Thanks in advance for any help!

Andreas Rozek

Edited by Rozek

Share this post


Link to post
Share on other sites
Siao

$LBS_MULTIPLESEL does what it's supposed to do (select/deselect multiple items one by one with single mouse clicks, no advanced keyboard features). You probably want $LBS_EXTENDEDSEL (0x800).

Edited by Siao

"be smart, drink your wine"

Share this post


Link to post
Share on other sites
Rozek

Great!

Thanks - in fact, I already tried $LBS_EXTENDEDSEL as it is offered by Koda (which I use to design my user interface - it's a marvelous tool!) but as it is not (yet) defined by AutoIt, I did not follow that path any further.

Thanks a lot!

Andreas Rozek

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.