Current Status

Book

Program Phases, A Programming Language and API Translator allows programmers to learn new programming languages by providing simple indexed example programs. Each program illustrates useful, common, and well defined functionality.

GUI Based Program with Main Window
Programming Features:
  • Create a Resizable Main Window for a GUI Based Application
  • Set the Main Window Icon and Caption
  • Set the Main Window Menu
  • Set the Main Window Background Color and Mouse Cursor
  • Prompt to Exit the Application when the Main Window is Closed
Description:
  • Program Phase Task 4 is a GUI based application that creates a main window with a "File" menu. The "File" menu contains two menu items.
  • If the user activates the "Hello World!" menu item, the following message box is displayed.
  • If the user activates the "Exit" menu item, the main window is closed, and the program exits. If the user attempts to close the main window by clicking on the x button in the upper right corner of the main window, the following message box is displayed.
  • If the "Yes" button is activated, then the program exits. If the "No" button is activated, then the main window is not closed and the program continues to run.
See Also
  Program Phase List
  Program Phase Task 1 - Hello World with Strings
  Program Phase Task 2 - Application Name Console Output
  Program Phase Task 3 - GUI Based Program with Custom Class Def. and Instantiation