Purpose
Returns the current border pen style currently in use. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
CurrentBorderPen()
Return Value
Pen
Description
The CurrentBorderPen() function returns the current border pen style. MapInfo Pro assigns the current style to the border of any region objects drawn by the user. If a MapBasic program creates an object through a statement such as Create Region statement, but the statement does not include a Pen clause, the object uses the current BorderPen style.
The return value can be assigned to a Pen variable, or may be used as a parameter within a statement that takes a Pen setting as a parameter (such as Set Map statement).
To extract specific attributes of the Pen style (such as the color), call the StyleAttr() function. For more information about Pen settings, see Pen clause.
Example
Dim p_user_pen As Pen p_user_pen = CurrentBorderPen()
See Also:
CurrentPen() function, Pen clause, Set Style statement, StyleAttr() function