import GUI ; import Graphics ; // Create a window at (0, 0) with width 360 and height 480 int windowID = newWindow( 0, 0, 360, 480, "Hello GUI" ) ; // Create a button at (10, 10), size 100~50 int buttonID = newButton ( 10, 10, 100, 50, "PUSH" ) ; mountComponent( buttonID, windowID ) ; // Create a text field at (10, 70), size 100~30 int textFieldD = newTextField( 10, 70, 100, 30, "INPUT" ) ; mountComponent( textFieldD, windowID ) ; // Create a text area at (120, 10), size 200~200 int textAreaID = newTextArea( 120, 10, 200, 200, "INPUT" ) ; mountComponent( textAreaID, windowID ) ; // Create a select field at (10, 110), size 100~20 string text[ 3 ] ; text[ 0 ] = "TYPE-A"; text[ 1 ] = "TYPE-B"; text[ 2 ] = "TYPE-C"; int selectFieldID = newSelectField( 10, 110, 100, 20, text ) ; mountComponent( selectFieldID, windowID ) ; // Create a checkbox at (10, 140), size 100~20 int checkBoxID = newCheckBox( 10, 140, 100, 20, "TURBO", true ) ; mountComponent( checkBoxID, windowID ) ; // Create a text label at (10, 170), size 100~20 int textLabelID = newTextLabel( 10, 170, 100, 20, "Hello GUI ! " ) ; mountComponent( textLabelID, windowID ) ; // Load an image file named "Test.png" int graphicsID = newGraphics( "Test.png" ) ; // Create an image label at (10, 220), size 310~200 int imageLabelID = newImageLabel( 10, 220, 310, 200, graphicsID ) ; mountComponent( imageLabelID, windowID ) ;