Problem:
The Micro Focus graphical, shared run-time system, character mode application fonts provide the means to obtain a large, nearly full screen window for character mode applications.
Resolution:
INTRODUCTION
==========
The Micro Focus Graphical, Shared Run-time, character mode
application Fonts provide the means to obtain a large,
nearly full screen window for character mode applications.
SOURCE FILES:
=========
Program Files Description
------------------- -----------------------------------------------------------
Tictac.cbl Use this program to sample the Fonts and gain familiarity with the Shared
Run-time System Control.
REQUIREMENTS:
==========
Actually, these fonts should work with any Workbench product version 2.5 through 4.0 and any Net Express version 2.0 through 3.1 under Windows versions 3.0, 3.1, 3.11, 95, 98, ME, NT and 2000.
OPERATION:
========
First, install the Fonts by clicking Windows Start (button), pointing to Settings (group) and then clicking Control Panel (button). In Control Panel double click Fonts (icon). In Fonts (dialog) click File (menu) and click Install New Font... (button). In Add Fonts (dialog) confirm that Copy fonts to Fonts folder (check box) is checked. Use Add Fonts (dialog) to browse to the location where the Fonts are located. These Font descriptions will appear in List of fonts (text control):
MF Full Screen Font SVGA, 800x600, CP437, v1
MF Full Screen Font VGA, 640x480, CP437, v1
MF Full Screen Font XGA, 1024x768, CP437, v1
Select all three Fonts and click OK (button). The new fonts are installed.
Do not Animate or Run the example program within the IDE. You will not be able to access the new fonts in this environment. Instead, create a Shortcut on your Desktop that will execute the Tictac.exe in the project's Release directory. Double click your new Shortcut. A window with this description (title bar):
TICTAC.EXE - COBOL Text Window
should appear. In the upper left corner of the Tictac window is a Red/Yellow System Menu Icon. Click this Icon. The Drop down menu will have "Settings..." and "Font Size..." buttons in addition to the normal System menu buttons. Click Font Size... (button) and you'll see a Font dialog where you can select one of the new Fonts. The 640X480 font will yield the smallest window, 800X600 is medium in size and 1024X768 is the largest.
When you've determined the window size that best suits your needs, click Settings... (button) in the System Menu. Three options are available as follows:
Save position and size on exit
Save font size on exit
Disable termination prompt
The position and size of your window can be saved when the application terminates by checking the "Save position and size on exit" check box. If you move the window when the application is running to a different location the new location will be saved when the application is terminated. The default start up position is the upper left corner of the screen.
The Font name and font size can be saved when the application terminates by checking the "Save font size on exit" check box. These special fonts only have a single size, but this setting will remember the font name. Also, if you find other fonts with multiple sizes that satisfy your window size requirements, this setting will save the font name and the currently selected size at termination.
The Program Termination prompt can be disabled by checking the "Disable termination prompt" check box. This prompt is a Windows MessageBox displayed by the Run-time system after the program has terminated. It is only displayed when the final application window is not blank. If the window is blank the prompt is not displayed. Your application program can control the prompt by clearing the screen to spaces before terminating. When an error condition is forcing the termination of the program, you could decide to display an error message and not clear the screen to spaces. This would cause the prompt to be displayed. Before clicking the OK button in the MessageBox, you can click on the title bar of the Termination prompt and move it away so that whatever is displayed in the window can be read, copied and pasted into a text file and saved.
The CommandLine directory contains a second copy of the source program. The Tictac executable was created with the following command line: cbllink -grs tictac.cbl
Micro Focus Full-Screen Windows Fonts
========================
The table below lists the font name, resolution, video standard, code page and soft font name for each font.
________________________________________________
| Font name |Resolution|Standard|Codepage| Soft Font |
|----------------- ------------ -------- -------- -----------------|
|MFVGA01.FON| 640x480 | VGA | 437 |MFVGA01.FNT|
|MFVGA02.FON| 800x600 | SVGA | 437 |MFVGA02.FNT|
|MFVGA03.FON| 1024x768 | XGA | 437 |MFVGA03.FNT|
------------------ ------------ -------- -------- ------------------
The physical pixel resolutions limit the full-screen size provided by these fonts. They provide the maximum window text space possible for the resolution specified. The soft font (.FNT) files are provided so you can amend the character sets to your aesthetic and national requirements.
These fonts were created using 16bit Windows Tools. To modify and/or re-create these full-screen fonts you will need the following files:
Font Editor
Windows Resource Compiler (RC.EXE, RCPP.EXE, RCPP.ERR)
These tools are supplied with the Microsoft Windows 3.1 Software Development Kit. (They are also available with Microsoft Visual C Version 1.52, the final Microsoft C/C 16bit software development system.) The MAKEFONT.BAT file and Fontres.obj files are provided to document the resource script required for each font and the linking required to create the three ".FON" files.
REFERENCES
========
Microsoft Windows SDK Programming Tools (v3.1), Chapter 1, Designing Fonts
Microsoft Windows SDK Programming Tools (v3.1), Chapter 2, Compiling Resources
Microsoft Windows User Guide (v3.1), Chapter 5, What Is Control Panel?
==========================================================
Keywords: demonstration, sample, example, demo, winfonts.zip
demo.ex
demo.ne