# IVNumberBox label update

**URL:** <https://iplug2.discourse.group/t/ivnumberbox-label-update/302>\
**Category:** Uncategorized\
**Created:** [10 February 2021 08:49 UTC](https://iplug2.discourse.group/t/ivnumberbox-label-update/302 "2021-02-10T08:49:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![radiofarmer](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@radiofarmer](https://iplug2.discourse.group/u/radiofarmer)\
**Post date:** [10 February 2021 08:49 UTC](https://iplug2.discourse.group/t/ivnumberbox-label-update/302/1 "2021-02-10T08:49:57Z")

</div>

When updating the value of an `IVNumberBox` through the increment/decrement pushbuttons, the value text does not get updated until you move the mouse over the control, while changes in the value caused by dragging or scrolling are reflected immediately. I’m rather confused as to why this should be the case, since the pushbutton action functions call the exact same function as the `OnMouseScroll` and `OnMouseDrag` functions, namely `OnValueChanged`. Stepping through the various functions that are in turn called by `OnValueChanged`, I’ve found what appears to be the exact same behavior: regardless of how you interact with the control, the value and the label gets updated correctly; only the handling of the _drawing_ of the value is somehow different, but I can’t manage to find the relevant difference between `OnIncrementFunc` and `OnMouseOver` that would lead to this different drawing behavior.

Any suggestions as to what function I might need to adjust? Thanks!

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [10 February 2021 20:17 UTC](https://iplug2.discourse.group/t/ivnumberbox-label-update/302/2 "2021-02-10T20:17:04Z")

</div>

I noticed this as well. It seems a side effect of some code that I have reverted on master

---

<div class="post-metadata">

**Author:** ![radiofarmer](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@radiofarmer](https://iplug2.discourse.group/u/radiofarmer)\
**Post date:** [11 February 2021 09:10 UTC](https://iplug2.discourse.group/t/ivnumberbox-label-update/302/3 "2021-02-11T09:10:32Z")

</div>

I just pulled the new code, and the control is working as expected now. Thanks!
