AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multi-select ListBox behavior

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
JBensimon



Joined: 16 Nov 2004
Posts: 130
Location: New York

PostPosted: Fri May 06, 2005 3:43 am    Post subject: Multi-select ListBox behavior Reply with quote

No idea if the following behavior is even within the control of AHK or is a Windows quirk, but multi-select listboxes with the "8" option (to make the use of Ctrl or Shift unnecessary) act unexpectedly when there is white space below the last list item (by virtue of the listbox being taller than necessary). Specifically, clicking anywhere within the white space below the last item in the list causes the list item that was last clicked to be toggled again, i.e. clicking the white space is equivalent to clicking whichever item in the list was last clicked, regardless of its position in the list.

Example:

Gui, Add, ListBox, h200 0x8, abc|def|ghi|jkl|mno
Gui, Show

Click say the "def" item, then start clicking in the empty area below the "mno" item. Each new click in that area toggles "def" back and forth.

No biggie, just curious.

Jacques.
Back to top
View user's profile Send private message Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Fri May 06, 2005 7:16 am    Post subject: Reply with quote

I'm not sure if that helps, but I could reproduce this behaviour on my machine
XP Pro SP2
AHK 1.0.31.05
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Fri May 06, 2005 10:56 am    Post subject: Reply with quote

When you click a ListBox, the click goes directly to the control itself. Since the ListBox code is built into the OS, how it handles the click is entirely up to it.

So this strange behavior might be by design, perhaps some ease-of-use or shortcut feature. It could also be a bug, in which case it could probably be patched (if it's really important to anyone) by overriding the control's code and substituting a custom click handler.

Thanks for reporting it.
Back to top
View user's profile Send private message Send e-mail
JBensimon



Joined: 16 Nov 2004
Posts: 130
Location: New York

PostPosted: Fri May 06, 2005 12:05 pm    Post subject: Unimportant Reply with quote

Totally not important as far as I can tell. Just for my own curiosity, are AHK controls implemented via COMCTL32.DLL?

Jacques.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sat May 07, 2005 12:19 am    Post subject: Reply with quote

Yes, they're all from COMCTL32.DLL.
Back to top
View user's profile Send private message Send e-mail
JBensimon



Joined: 16 Nov 2004
Posts: 130
Location: New York

PostPosted: Sat May 07, 2005 4:31 pm    Post subject: Thanks. Reply with quote

Thanks, Chris (and thanks toralf for the confirmation).

Jacques.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group