Program Name and Icon

A program name can be specified as a string value after keyword PROGRAM. The program name is displayed as the caption of your program's window:

program "My First Program"
DrawText (10, 10, "Hello World")
This is how result would look like:


After the program name you can also use keyword ICON followed another string value, to specify a PNG file with an icon for your program. Keep in mind, that icon is not shown when you debug your program. Icon is only shown if you generate EXE file and run it:
program "My First Program" icon "first.png"
DrawText (10, 10, "Hello World")
This is how result would look like, once you generate and run EXE file:


See also: