RibbonButton

Constructor( strName as String, strText as String, picIcon as Picture = Nil )

Dim newBTN as RibbonButton = new RibbonButton( “Test”, “Test Button” )
Dim newBTN as RibbonButton = new RibbonButton( “Test”, “Test Button”, Picture1 )

Events

This class exposes no events.

Methods

This class has no accessible methods

Properties

Enabled as Boolean
Determines whether the button is able to be clicked.

Height as Integer
Returns the drawn height of the button.(Read-Only)

Icon as Picture
Sets the icon to be displayed within the button.

Name as String
The name of the RibbonButton.

ShowText as Boolean
Determines whether the text of the button is displayed. Use only when Icon is not Nil.

Text as String
The text of the button.

TextBold as Boolean
Sets the font weight of the text.

TextFont as String
Sets the font face of the text.

TextItalic as Boolean
Determines whether the text is draw in italics.

TextSize as Boolean
Sets the size of the font face.

TextUnderline as Boolean
Determines whether text is drawn with the underline decoration.

Visible as Boolean
Sets whether button is drawn.

Width as Integer
Returns the drawn width of the button.(Read-Only)

X as Integer
Returns the X position of the button when drawn.(Read-Only)

Y as Integer
Returns the Y position of the button when drawn.(Read-Only)