Using Intel® Visual Fortran to Create and Build Windows*-Based Applications

ID 757211
Date 7/23/2021
Public
Document Table of Contents

Using QuickWin

This section introduces the major categories of QuickWin library routines. It gives an overview of QuickWin features and their use in creating and displaying graphics, and customizing your QuickWin applications with custom menus and mouse routines. Drawing Graphics and Using Fonts from the Graphics Library Overview cover graphics and fonts in more detail.

The Intel® Fortran QuickWin library helps you give traditional console-oriented Fortran programs a Windows look and feel, with a scrollable window and a menu bar. Though the full capability of Windows is not available through QuickWin, QuickWin is simpler to learn and to use. QuickWin applications support pixel-based graphics, real-coordinate graphics, text windows, character fonts, user-defined menus, mouse events, and editing (select/copy/paste) of text, graphics, or both.

You can use the QuickWin library to do the following:

  • Compile console programs into simple applications for Windows.

  • Minimize and maximize QuickWin applications like any Windows-based application.

  • Call graphics routines.

  • Load and save bitmaps.

  • Select, copy and paste text, graphics, or a mix of both.

  • Detect and respond to mouse clicks.

  • Display graphics output.

  • Alter the default application menus or add programmable menus.

  • Create custom icons.

  • Open multiple child windows.

In Intel Visual Fortran, graphics programs must be either Fortran QuickWin, Fortran Standard Graphics, Fortran Windows, or use OpenGL routines. Fortran Standard Graphics Applications are a subset of QuickWin that support only one window.

You can choose the Fortran QuickWin or Standard Graphics application type from the list of available project types when you create a new project in the visual development environment. Or you can use the /libs:qwin compiler option for Fortran QuickWin or the /libs:qwins compiler option for Fortran Standard Graphics.

Note that Fortran QuickWin and Standard Graphics applications cannot be DLLs, and QuickWin and Standard Graphics cannot be linked with run-time routines that are in DLLs. This means that the /libs:qwin option and the /libs:dll with /threads options cannot be used together.

You can access the QuickWin routines library from Intel Fortran as well as other languages that support the Fortran calling conventions.

A program using the QuickWin routines must explicitly access the QuickWin graphics library routines with the statement USE IFQWIN (see USE Statement Needed for Fortran QuickWin Applications).