| View previous topic :: View next topic |
| Author |
Message |
JBensimon
Joined: 16 Nov 2004 Posts: 130 Location: New York
|
Posted: Fri May 06, 2005 3:43 am Post subject: Multi-select ListBox behavior |
|
|
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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Fri May 06, 2005 7:16 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Fri May 06, 2005 10:56 am Post subject: |
|
|
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 |
|
 |
JBensimon
Joined: 16 Nov 2004 Posts: 130 Location: New York
|
Posted: Fri May 06, 2005 12:05 pm Post subject: Unimportant |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Sat May 07, 2005 12:19 am Post subject: |
|
|
| Yes, they're all from COMCTL32.DLL. |
|
| Back to top |
|
 |
JBensimon
Joined: 16 Nov 2004 Posts: 130 Location: New York
|
Posted: Sat May 07, 2005 4:31 pm Post subject: Thanks. |
|
|
Thanks, Chris (and thanks toralf for the confirmation).
Jacques. |
|
| Back to top |
|
 |
|