20,741
edits
| Line 47: | Line 47: | ||
<syntaxhighlight lang="nasal" enclose="div"> | <syntaxhighlight lang="nasal" enclose="div"> | ||
# create a new window, dimensions are 320 x 160, using the dialog decoration (i.e. titlebar) | # create a new window, dimensions are 320 x 160, using the dialog decoration (i.e. titlebar) | ||
var window = canvas.Window.new([320,160],"dialog"); | var window = canvas.Window.new([320,160],"dialog") | ||
.set('title','My new Window'); | |||
# adding a canvas to the new window and setting up background colors/transparency | # adding a canvas to the new window and setting up background colors/transparency | ||