The present invention relates to a program-
development environment that allows developers to seamlessly switch between a visual
programming paradigm and a textual
programming paradigm, thereby permitting developers to choose the paradigm best suited for creating each aspect of the desired program. A
graphical user interface (GUI) may be generated by the program-
development environment, and displayed on the screen of a computer
system. The GUI has several elements including a form window and a designer window. The form window is configured to receive one or more control objects selected by the developer, and the designer window is configured to display a symbolic representation of those control objects placed in the form window. According to the invention, these symbols can be linked together by the developer in the form of a data flow or
block diagram that logically represents the flow of data and control information into, out of, and between the selected control objects, and that corresponds to the application program being generated. In response to such graphical inputs, the program-
development environment generates event handler procedures or code for use with the application program being developed. The program-development environment additionally affords the developer, preferably through the use of a selectively displayable code window, the ability to provide or modify event handlers textually.