Differences between revisions 1 and 2
Revision 1 as of 2008-02-26 13:40:12
Size: 501
Editor: anonymous
Comment:
Revision 2 as of 2008-02-26 14:04:27
Size: 527
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Line 16: Line 15:
This programm will result in this form: This program will result in this form:

attachment:helloworld.jpg

 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

HelloWorldGui (last edited 2014-02-17 10:22:17 by KaiJaeger)