Print Page | Close Window

Listbox select item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14073
Printed Date: 08 June 2024 at 10:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Listbox select item
Posted By: tobi
Subject: Listbox select item
Date Posted: 19 April 2009 at 9:49am
How can I make the listbox also select the current item when itīs clicked with the right mouse button ?
I want this to display a context menu after selecting the item with right mouse click ...





Replies:
Posted By: Oleg
Date Posted: 20 April 2009 at 2:39am
Hi,
 
You can try manually select item in Handler
 
ListBox1.ListIndex ~= ListBox1.TopIndex + y / (itemHeight)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: tobi
Date Posted: 21 April 2009 at 9:42am
Hi Oleg,
 
I think that will make trouble ! How do I get itemHeight when I use Markup with dynamic markup text and height ?
 
Isnīt it possible to implement a function like IndexFromPoint ? This is implemented in the .net listbox and would ease this ...
 
Kind regards
 


Posted By: tobi
Date Posted: 23 April 2009 at 3:38am
What do you think about it Oleg ?


Posted By: Oleg
Date Posted: 24 April 2009 at 1:35am
Hi,
 
Think its good suggestion that already implemented for next release :)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: tobi
Date Posted: 24 April 2009 at 2:03am
Hi Oleg,

is it possible to get a beta with this feature to continue my project ?

Thanks


Posted By: Oleg
Date Posted: 24 April 2009 at 2:22am
Hello,
 
Open new issuetrack issue, will attach it to test.
 
Thanks


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: tobi
Date Posted: 24 April 2009 at 2:30am
Done #21527

Thanks a lot



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net