HtmlMessageBoxSetDefaultPointSize

Top  Previous  Next

HtmlMessageBoxSetDefaultPointSize is used to set the size in points of the default font used in the MessageBoxes, when a <FONT> tag is not in effect, or when a FONT tag does not contain the SIZE attribute. It persists as long as the DLL is loaded, or until another call to the same function is made.

 

Syntax:

 

 Standard Windows API Calling:

 void HtmlMessageBoxSetDefaultPointSize(int pointSize);

 

 COM Object Calling:

 obj.SetDefaultPointSize(LONG pointSize)

 

 .NET Object Calling (C# / VB.NET):

 HtmlMsgBox.SetDefaultPointSize(int pointSize);

 

 PowerBuilder Calling:

 obj.HtmlMessageBoxSetDefaultPointSize(int pointSize)

 

Parameters:

 

pointSize: The size in points of the font to use as the default font for MessageBox text.

 

 

Return Value:

 

None.

 

Remarks:

 

This default point size setting can be superseded in the text of an HtmlMessageBox / Show function call with a <FONT> tag with a SIZE attribute, such as <FONT SIZE=12>. The default, if this function has not been called, is 10 points.

 

Example:

 

For standard Windows API calling:

 

HtmlMessageBoxSetDefaultPointSize(12);