ReadOnly ListBox

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

ReadOnly ListBox

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:54 pm

by Alan >> Wed, 24 Aug 2005 7:33:17 GMT

Does anyone have a technique for making a listBox readOnly? What I’m after is the ability to be able to scroll but not allow the select to be activated (entries to be clicked) – this is a multi-select listBox. I have tried disableEvents and enableEvents, these do not appear to work. I suspect the select function is activated in windows before Jade gets the event.

One suggestion made is to place a transparent picture control over the selectable area.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: ReadOnly ListBox

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:54 pm

by Craig Shearer >> Wed, 24 Aug 2005 9:48:45 GMT

A Table control can be made to look pretty much identical to a ListBox (turn off grid lines, set the backColor to the window color, etc.) and then you can control selection etc. with the selectMode attribute. Would this work? Of course, you'd have to change all your ListBox controls to Table controls... that would be a pain!


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 4 guests

cron