'Hello World in BaCon/HUG INCLUDE "/usr/share/BaCon/hug.bac" INIT ' 1.) Create your main working window, 250 pixels wide x 100 pixels high Mainwin = WINDOW( "Hello World", 250, 100 ) ' 2. ) Create a label Hello World! with text, 150 x 30 My_label = MARK( "Hello World!", 150, 30 ) ' 3.) Attach the label to the main window ATTACH( Mainwin, My_label, 50, 20 ) ' 4.) Create a button My_btn = BUTTON( "Quit", 80, 25) ' 5.) Attach button to the main window ATTACH( Mainwin, My_btn, 80, 60 ) ' 6.) Make button do something CALLBACK( My_btn, QUIT) DISPLAY