I'm developing an application by using Live code. My ideas is I have "parent" button and It will generate 10 buttons after I had clicked on "parent" button.
then as I clicked on each "child" button it will give a popup "Button 1 is clicked !". It's quite simple right but I don't know how my code is doesn't work.
Code: Select all
on mouseUp
repeat with x=1 to 10
new button x
add 30 to y
set the width of button x to 50
set the height of button x to 25
set the location of button x to 50,50+y --x,y location
end repeat
end mouseUp
I have the attached files in case you guys want to see
I think my code is not so good. Hope you guys give me to fix it
Regards,
Quang