HelloWorld;ref;btn;myFnt
⍝ Build up a GUI and display "Hello world" in a button on a Form
 ref←⎕NEW'Form'(⊂'Caption' 'Hello World with APL')
 ref.Coord←'Pixel'
 myFnt←⎕NEW'Font'(('Pname' 'Arial Black')('Size' 48))
 btn←ref.⎕NEW'Button'(('Caption' 'Hello World')('Posn'(0 0))('Size'ref.Size))
 btn.FontObj←myFnt
 btn.onSelect←1
 ⎕DQ'.'

This is inline ⎕LX←'HelloWorld' APL

This program will result in this form:

attachment:helloworld.jpg

CategoryHelloWorld