Page 1 of 1

ReadOnly ListBox

Posted: Fri Aug 07, 2009 2:54 pm
by ConvertFromOldNGs
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.

Re: ReadOnly ListBox

Posted: Fri Aug 07, 2009 2:54 pm
by ConvertFromOldNGs
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!