On Jan 4, 2007, at 10:40 AM, Ian M. Jones wrote:

I'm looking to implement double clicking the column divider in a listbox header to auto-size the column to the longest contents in that column. Just like Excel does.

Does anyone have any pointers as to how to do this, I'm stuck as it seems listboxes don't implement the DoubleClick event in their headers, and I can't find a way around this.

Anyone implemented such a feature, if so, care to enlighten my dark dark world?

You can write your own DoubleClick trap using the MouseDown event of the Listbox.

Contact me off list if you wish an example of a DoubleClick that works anywhere in a ListBox.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to