SetFontSize method


Available for all objects except Image, HScroll, VScroll, ToolBar, ProgressBar, Slider, UpDown and Animate.

Prototype

SetFontSize Proto hWnd:HWND, lFontSize:LONG

Syntax

Invoke SetFontSize, hWnd, lFontSize

Function

Sets the font size for an object.

Parameters

hWnd

Handle to the object.

lFontSize

A LONG value specifying the new font size (in points) for the object.

Return value

Eax returns TRUE if succesful, or FALSE if not.


REMARKS
: This method has no effect for child controls being inside a DialogBox object (see
Dialog boxes), as they use the same font than their parent.