# Double Click on the vertical separation line of a ListBox?

**URL:** <https://forum.xojo.com/t/double-click-on-the-vertical-separation-line-of-a-listbox/70910>\
**Category:** General\
**Created:** [June 27, 2022, 9:13am UTC](https://forum.xojo.com/t/double-click-on-the-vertical-separation-line-of-a-listbox/70910 "2022-06-27T09:13:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 27, 2022, 9:13am UTC](https://forum.xojo.com/t/double-click-on-the-vertical-separation-line-of-a-listbox/70910/1 "2022-06-27T09:13:29Z")

</div>

Yes, you are right, I want to adapt the column width.

But I need to get the DoubleClick Event on the vertical separation line of the ListBox.

Is it possible ?

And if so, how ?

Nota: resizing “automagically” the Column is feasable. (in a loop…)

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [June 27, 2022, 9:54am UTC](https://forum.xojo.com/t/double-click-on-the-vertical-separation-line-of-a-listbox/70910/2 "2022-06-27T09:54:21Z")

</div>

use the mousedown event, and count the time between two clics

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 27, 2022, 9:57am UTC](https://forum.xojo.com/t/double-click-on-the-vertical-separation-line-of-a-listbox/70910/3 "2022-06-27T09:57:51Z")

</div>

Thank you Jean-Yves…

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [June 27, 2022, 10:13am UTC](https://forum.xojo.com/t/double-click-on-the-vertical-separation-line-of-a-listbox/70910/4 "2022-06-27T10:13:32Z")

</div>

at the mousedown event, store the time of the clic in a property  
also check if the mouse is around a column line, and stor it’s position  
at the next mousedown, check if the time is less than a doubleclic  
then check if the mouse is still at the same position  
if yes then fire a doublecliccolumn event

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 27, 2022, 10:29am UTC](https://forum.xojo.com/t/double-click-on-the-vertical-separation-line-of-a-listbox/70910/5 "2022-06-27T10:29:27Z")

</div>

I will try in the afternoon when back home.
