# How to detect if a listbox cell is editing

**URL:** <https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579>\
**Category:** Getting Started\
**Created:** [July 31, 2018, 1:49pm UTC](https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579 "2018-07-31T13:49:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Volbragt\_Etienne](https://forum.xojo.com/user_avatar/forum.xojo.com/volbragt_etienne/32/6530_2.png) [@Volbragt\_Etienne](https://forum.xojo.com/u/Volbragt_Etienne)\
**Post date:** [July 31, 2018, 1:49pm UTC](https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579/1 "2018-07-31T13:49:31Z")

</div>

I created a listbox with all the columns as TypeEditable.  
I use a button with a picture to move the selected row in the listbox up or down in the list, this is done by turning the mousewheel.  
Everything works fine but :  
If i select a row or cell to edit then i would like to disable the mousewheel action.

My question : how can I check if one of the rows (cells) is in editing mode ?

Regards  
Etienne

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [July 31, 2018, 1:55pm UTC](https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579/2 "2018-07-31T13:55:20Z")

</div>

keep track of when you begin the activecell action?

---

<div class="post-metadata">

**Author:** ![Volbragt\_Etienne](https://forum.xojo.com/user_avatar/forum.xojo.com/volbragt_etienne/32/6530_2.png) [@Volbragt\_Etienne](https://forum.xojo.com/u/Volbragt_Etienne)\
**Post date:** [July 31, 2018, 2:25pm UTC](https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579/3 "2018-07-31T14:25:04Z")

</div>

Dave : Thanks for the reply.  
Further invest give me another solution :  
listbox event ‘CellGotFocus’ and listbox event ‘CellAction’ are suitable for detecting the cell editing mode.  
When a cell starts editing a CellGotFocus event starts - here i set a property to false  
When editing is done the CellAction event will start and here i reset this property to True.  
In the mousewheel action I then verify the state of this property.

Thanks  
Regards  
Etienne

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [July 31, 2018, 2:27pm UTC](https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579/4 "2018-07-31T14:27:55Z")

</div>

Confused… how is that “another solution”… you just described what I was alluding to…

---

<div class="post-metadata">

**Author:** ![Volbragt\_Etienne](https://forum.xojo.com/user_avatar/forum.xojo.com/volbragt_etienne/32/6530_2.png) [@Volbragt\_Etienne](https://forum.xojo.com/u/Volbragt_Etienne)\
**Post date:** [July 31, 2018, 3:10pm UTC](https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579/5 "2018-07-31T15:10:08Z")

</div>

You are wright Dave.  
But i was looking at the ‘ActiveCell’ property of the listbox, and that was not exactly what i was looking for.  
But for sure you’re tip give me the solution.  
That’s why I also say thanks in my reply.  
Sorry for the misunderstanding.

Regards  
Etienne

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:18pm UTC](https://forum.xojo.com/t/how-to-detect-if-a-listbox-cell-is-editing/44579/6 "2020-10-29T19:18:15Z")

</div>


