Back to Search Start Over

Graphical User Interface Programming in Introductory Computer Science.

Authors :
Skolnick, Michael M.
Spooner, David L.
Publication Year :
1995

Abstract

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)

Details

Language :
English
Database :
ERIC
Publication Type :
Report
Accession number :
ED392437
Document Type :
Reports - Descriptive<br />Speeches/Meeting Papers