Hello!
I'd like to add event TextChanged to Object(Door library) object at runtime
like in following example:
I tried with following code but it doesn't work:
My intent is to add event textChanged to some textBox control at runtime.
Can anybody help me, please
Best regards
Gorazd
I'd like to add event TextChanged to Object(Door library) object at runtime
like in following example:
B4X:
numberObj.New1(False)
numberObj.FromControl("number")
numberEvt.New1(numberObj.value,"TextChanged")
I tried with following code but it doesn't work:
B4X:
ctrl="number2"
AddObject (ctrl&"_obj", "Object")
Control(ctrl&"_obj").New1(False)
Control(ctrl&"_obj").FromControl(ctrl)
AddEvent(ctrl&"_obj.value",TextChanged, "NumberEvent_NewEvent")
My intent is to add event textChanged to some textBox control at runtime.
Can anybody help me, please
Best regards
Gorazd