Purpose |
Display a
| ||||||||||||||||||||||||||
Syntax |
DISPLAY FONT [hParent],
[xpos], [ypos], defname$,
defpoints&, defstyle&,
flags& _ | ||||||||||||||||||||||||||
hParent |
Handle of the parent window or dialog. If there is no parent, use zero (0) or %HWND_DESKTOP. | ||||||||||||||||||||||||||
xpos |
Horizontal position, in pixels, relative to the parent window. If omitted, PowerBASIC selects the position (offset from the parent, or centered if no parent). | ||||||||||||||||||||||||||
ypos |
Vertical position, in pixels, relative to the parent window. If missing, PowerBASIC selects the position (offset from the parent, or centered if no parent). | ||||||||||||||||||||||||||
defname$ |
The name of the default, pre-selected font which
will be initially highlighted when the font dialog is displayed. A default
font may be disabled by passing a nul, zero-length
| ||||||||||||||||||||||||||
defpoints& |
The point size of the default, pre-selected font. | ||||||||||||||||||||||||||
defstyle& |
The style attribute of the default, pre-selected font. See the specific definition of style& below. | ||||||||||||||||||||||||||
flags& |
The style attributes of the FONT Dialog. The following values may be used alone or combined, and are predefined in the PowerBASIC compiler:
| ||||||||||||||||||||||||||
fontname$ |
The name of the font selected by the user | ||||||||||||||||||||||||||
points& |
The point size of the font selected by the user. | ||||||||||||||||||||||||||
style& |
The style attribute of the selected font. Any of the following values can be combined or used alone:
For example, if a style& value of 3 is returned, it specifies that a combination of both bold and italic attributes was selected by the user. | ||||||||||||||||||||||||||
color& |
The RGB value of the selected color. | ||||||||||||||||||||||||||
charset& |
The chosen character set - 0 if a standard U.S. charset. | ||||||||||||||||||||||||||
See also |
CONTROL SET FONT, DIALOG FONT, DISPLAY BROWSE, DISPLAY COLOR, DISPLAY OPENFILE, DISPLAY SAVEFILE, FONT END, FONT NEW, GRAPHIC SET FONT, XPRINT SET FONT |