Changes

Jump to: navigation, search

Nasal Hello World

309 bytes added, 12 January
m
+canvas example
<syntaxhighlight lang="nasal">
gui.popupTip("Hello, World!");
</syntaxhighlight>
 
To use a [[Canvas]] GUI dialog, try the following:
 
 
<syntaxhighlight lang="nasal">
# create a new InputDialog with a title, label, and a callback
canvas.InputDialog.getText("Hello World", "Please enter your name", func(btn,value) {
if (value) gui.popupTip("You entered: "~value);
});
</syntaxhighlight>
19,160
edits

Navigation menu