Task

Create a window that has:

   a label that says   "There have been no clicks yet" 
   a button that says   "click me"


Upon clicking the button with the mouse, the label should change and show the number of times the button has been clicked.




rollout buttonClick "Button Click"
(
    label l "There have been no clicks yet"
    button clickMe "Click me"
    local clickCount = 0
 
    on clickMe pressed do
    (
        clickCount += 1
        l.text = ("Number of clicks: " + clickCount as string)
    )
)
createDialog buttonClick