Simple windowed application: Difference between revisions
Content added Content deleted
Line 2,045: | Line 2,045: | ||
=={{header|LiveCode}}== |
=={{header|LiveCode}}== |
||
Comments and Description: |
|||
⚫ | |||
global count |
|||
The LiveCode script here meets the specification 100%, |
|||
but is not in common LiveCode style. Typically the |
|||
mouseUp command would be attached to the button |
|||
rather than to the 'card' (window). Nevertheless, the card |
|||
is in the object's message path so the button works well. |
|||
⚫ | |||
on openCard |
on openCard |
||
put empty into count |
put empty into count |
||
Line 2,054: | Line 2,060: | ||
add 1 to count |
add 1 to count |
||
put count into field "clicks" |
put count into field "clicks" |
||
end mouseUp |
end mouseUp</lang> |
||
</lang> |
|||
=={{header|Logo}}== |
=={{header|Logo}}== |