Jump to content

Clicking SpinBox attached to EditLine does not fire EditLine's GUI_CHANGED


photo

Recommended Posts

Posted

Attach a SpinBox object to an EditLine object.

Attach callback to EditLine's GUI_CHANGED event.

Run world.

Manually edit EditLine's contents. GUI_CHANGED callback is fired as expected.

Use SpinBox buttons to change EditLine's contents. GUI_CHANGED callback is not fired.

Posted

Hi Adam,

 

You are right, GUI::Changed not fired if attached widget is changing value, because it would cause infinite recurcion. Use GUI_PRESSED callback, it is fired in such cases.

×
×
  • Create New...