GTextField Event Handler isn't being executed when text is changed
in
Contributed Library Questions
•
2 months ago
Hi,
I'm having some trouble with the custom handlers. I have a 3 arrays of GTextField's and each one has a custom eventHandler.
As I initiate each Text Field, say:
sensorsList[i].addEventHandler(this, "handleSensorAtomTextEvent");
sensorsList_high[i].addEventHandler(this, "handleSensorAtomTextEvent");
sensorsList_low[i].addEventHandler(this, "handleSensorAtomTextEvent");
Then I have a function called:
handleSensorAtomTextEvent(GEditableTextControl text, GEvent event)
The only problem is that the handler isn't being run when the text is changed.
If I add in a general handleTextEvents() function, then that runs fine. But the problem is I need to know which textfield is being changed, hence why I've made custom handlers. So it's not really much use, and now I'm stuck!
Thanks for any help! :)
1