<<

Contents

Search

>>

 

FONTDIALOG

 

 

Instruction

 

 

Syntax:

FONTDIALOG(<Font Name>,<Font Style>,<Font Height>[,<Header>])

 

<Font Name>

= <STRING-EXPRESSION>

<Font Style>

= <STRING-EXPRESSION>

<Font Height>

= <NUM-EXPRESSION>

<Header>

= <STRING-EXPRESSION>

 

 

Meaning:

Calls the standard font dialog for selecting a font.

 

Attention: In Html Programs the fonts of the server computer (that is the computer on which the Ebus-2T-Server is running) are shown, because access to the fonts on the client computer is not allowed.

 

After the dialog has been closed EBUS_DATA contains the status and EBUS_DATA$ contains the selected font, the font style and the font height separated by semi-colons.

 

Value of EBUS_DATA

Meaning

0

The dialog has been cancelled.

1

EBUS_DATA$ contains the selected font, the fontstyle and the font height.

 

Parameter:

Font Name

Specifies the default font.

Font Style

Specifies the default font style. If <Font style> = "", the listbox for selecting the font style is disabled. 

Font Height

Specifies the default font height. If <Font Height> < 0, the listbox for selecting the font height is disabled.

Header

Specifies the header of the dialog.

 

Sample:

FONTDIALOG("Courier new","Bold",14,"Select font")

IF EBUS_DATA = 1

THEN FONT_NAME$  = SUBSTR$(EBUS_DATA$,";",1)

     FONT_STYLE$ = SUBSTR$(EBUS_DATA$,";",2)

     FONT_SIZE   = VAL(SUBSTR$(EBUS_DATA$,";",3))

ENDIF

 

See also:

FILEDIALOG

EBUS_DATA

EBUS_DATA$