Hi all,
I have one problem to create one button dynamically.
With this code i can create a button, but if i press it nothing happens.
Can someone helps please ?
ON ACTION button1
IF i = 0 THEN
LET c = n.getFirstChild()
LET l2 = c.createChild("Button")
LET i = l2.getId()
DISPLAY "I:",i
CALL l2.setAttribute("name","bt1")
CALL l2.setAttribute("text","BUTTON")
CALL l2.setAttribute("actionActive","1" )
CALL ui.interface.refresh()
END IF
ON ACTION bt1
DISPLAY "TEST"