Version 6.3.13 for Windows
 —  Dialog Component Reference  —

NGU-FONT-SELECT Dialog

This document covers the following topics:


Natural Object Name

NGUFOSE1

Top of page

Description

Provides the end user with a dialog box to select a font. To avoid problems, always ensure that you assign NULL-HANDLE to your font before you specify the OPEN DIALOG statement. Otherwise, an invalid font handle is assigned to the text(s) for which the end user has already selected a font.

Top of page

OPEN DIALOG Parameters

Name/Data Type Explanation
HANDLE OF GUI USING clause/Input The parent dialog of the font selection dialog box.
HANDLE OF FONT WITH clause/Output Returns a font.
Font selected (L) WITH clause/Output Indicates whether a font has been selected.
Font string (A253) WITH clause/Input/Output Input: preselected font, Output: font selected by end user.

Example:

   #FONT-NEW:= NULL-HANDLE /*Recommended every time you use this dialog 
   OPEN DIALOG NGU-FONT-SELECT  
        USING #DLG$WINDOW 
        GIVING #DLG 
        WITH #FONT-NEW #FONT-SEL #FONT-STRING 

Top of page