Visible to Intel only — GUID: GUID-6F29C1F0-E80C-4D5E-BC70-767D33161AFE
Visible to Intel only — GUID: GUID-6F29C1F0-E80C-4D5E-BC70-767D33161AFE
Setting the Graphics Mode
Use SETWINDOWCONFIG to configure the window for the properties you want. To set the highest possible resolution available with your graphics driver, assign a -1 value for numxpixels, numypixels, numtextcols, and numtextrows in the windowconfig derived type. This causes Fortran Standard Graphics applications to start in Full Screen mode.
If you specify less than the largest graphics area, the application starts in a window. You can use ALT+ENTER to toggle between Full Screen and windowed views. If your application is a QuickWin application and you do not call SETWINDOWCONFIG, the child window defaults to a scrollable text window with the dimensions of 640x480 pixels, 30 lines, 80 columns, and a font size of 8x16. The number of colors depends on the video driver used.
If SETWINDOWCONFIG returns .FALSE., the video driver does not support the options specified. The function then adjusts the values in the windowconfig derived type to ones that will work and are as close as possible to the requested configuration. You can then call SETWINDOWCONFIG again with the adjusted values, which will succeed. For example:
LOGICAL statusmode TYPE (windowconfig) wc wc%numxpixels = 1000 wc%numypixels = 300 wc%numtextcols = -1 wc%numtextrows = -1 wc%numcolors = -1 wc%title = "Opening Title"C wc%fontsize = #000A000C ! 10 X 12 statusmode = SETWINDOWCONFIG(wc) IF (.NOT. statusmode) THEN statusmode = SETWINDOWCONFIG(wc)
If you use SETWINDOWCONFIG, you should specify a value for each field ( -1 or your own number for numeric fields, and a C string for the title). Calling SETWINDOWCONFIG with only some of the fields specified can result in useless values for the other fields.