ERIC Number: ED392437
Record Type: RIE
Publication Date: 1995
Reference Count: N/A
Graphical User Interface Programming in Introductory Computer Science.
Skolnick, Michael M.; Spooner, David L.
Modern computing systems exploit graphical user interfaces for interaction with users; as a result, introductory computer science courses must begin to teach the principles underlying such interfaces. This paper presents an approach to graphical user interface (GUI) implementation that is simple enough for beginning students to understand, yet rich enough to demonstrate many important aspects of computer science. The GUI interface described is implemented using a library of C macros and provides a display window that outputs bit-mapped graphics and inputs mouse actions. The macro calls and conventions are described in the context of an implementation of Conway's Game of Life, a programming exercise found in many introductory texts. The GUI interface for the Game of Life program is detailed in the first section, in order to provide a concrete example of the capabilities of the simplified GUI library. The next section describes the life main function that sets up the buttons and associated callback functions; these callback functions are then presented. The last section gives an example of a simple paint program that can also be created using the GUI macro library. In addition, this paper considers how the material could be introduced in an Introduction to Computer Science course at Rensselaer Polytechnic Institute (New York). (AEF)
Publication Type: Reports - Descriptive; Speeches/Meeting Papers
Education Level: N/A
Sponsor: National Science Foundation, Arlington, VA.
Authoring Institution: N/A
Identifiers: Graphical User Interfaces; Macro Graphic System; Rensselaer Polytechnic Institute NY
Note: In: "Emerging Technologies, Lifelong Learning, NECC '95"; see IR 017 705.