ListBox - check on click |
Post Reply |
Author | |||
coffeemkr0
Newbie Joined: 27 March 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 19 June 2008 at 6:24pm |
||
I was wondering if it is possible with the XtremeListBox control to make it so that when a user selects an item it will also check/uncheck the check box for that item.
I don't see any selected index changed event or any event that will basically tell me when an item is clicked.
I originally thought I had solved the problem by simulating rectangles around each item in the list and then checking the mouse position in the mouse down event.
However, this solution does not work if the user scrolls the list box and as far as I can tell, there is also no way to tell when the list box is scrolled.
Is there any way to implement this?
|
|||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
||
I think the Click event is what you are looking for...try this:
|
|||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|||
coffeemkr0
Newbie Joined: 27 March 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
||
Haha, ListIndex, that is what I was missing :) Leave it to me to make something easy way too complicated.
Anyways, here is the final solution I came up with in case someone else has this issue.
I added a rectangle that covers the check boxes. If the cursor is inside that rectangle then it does nothing since this is the user clicking on the check box instead of the item.
|
|||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |