GraffitiButton
Events
Action( Button as Integer, X as Integer, Y as Integer )
Fires when the user clicks the control. Button is the mouse button which was clicked, 0 for Left, 1 for right. X and Y are the coordinates of the mouse position when clicked.
DropDownClick()
Fires when the user clicks the drop down portion of buttons whose style have a drop down button.
Got Focus()
Fires when the control receives focus
KeyPress( Key as String )
Fires when the user presses a key on their keyboard while the control has focus.
LostFocus()
Fires when the control loses focus.
MouseEnter()
Fires when the mouse enters the control’s bounds.
MouseExit()
Fires when the mouse leaves the control’s bounds.
MouseMove( X as Integer, Y as Integer )
Fires when the mouse is moved over the control. X and Y are the coordinates of the mouse when the event fires.
Open()
Fires when the control is created.
Methods
Push( MouseButton as Integer )
Signals the control to fire the Action event.
StyleCount() as Integer
Returns the number of styles currently available for display. For enumeration, use StyleCount – 1
StyleName( Index as Integer )
Returns the name of the style corresponding to the Index passed.
Properties
BackColor as Color
The background color of the control.
BackDown as Color
The background color of the control when the mouse is down.
BackOver as Color
The background color of the control when the mouse is hovering over it.
BGPictureDisabled as Picture
When using style 13, Image Button, this will be the background of the control when it is disabled.
BGPictureDown as Picture
When using style 13, Image Button, this will be the background of the control when the mouse is down.
BGPictureNormal as Picture
When using style 13, Image Button, this will be the background of the control in an idle state.
BGPictureOver as Picture
When using style 13, Image Button, this will be the background of the control when the mouse is hovering over it.
Bold as Boolean
Determines the font weight of the text.
BorderColorDark as Color
Dark border color when the control is in an idle state.
BorderColorDarkDown as Color
Dark border color when the mouse is down over the control.
BorderColorDarkOver as Color
Dark border color when the mouse is hovering over the control.
BorderColorLight as Color
Light border color of the control in an idle state.
BorderColorLightDown
Light border color when the mouse is down over the control.
BorderColorLightOver as Color
Light border color when the mouse is hovering over the control.
Cancel as Boolean
Determines whether this control reacts when the user presses the ESC key on it’s window.
CheckBoxBehavior as Boolean
Sets whether the control’s state is sticky.
CheckValue as Boolean
When CheckBoxBehavior is True, this will reflect the current value of the button.
Default as Boolean
Determines whether this control reacts when the user presses the Enter or Return keys on the keyboard.
DropDownBackColor as Color
Determines the background color of the drop down portion of the button in an idle state.
DropDownBackDown as Color
Determines the background color of the drop down portion of the button when the mouse is down.
DropDownBackOver as Color
Determines the background color of the drop down portion of the button when the mouse is hovering over it.
DropDownBorderDark as Color
Determines the dark border color of the drop down portion of the control in an idle state.
DropDownBorderDarkDown as Color
Determines the dark border color of the drop down portion of the control when the mouse is down.
DropDownBorderDarkOver as Color
Determines the dark border color of the drop down portion of the control when the mouse is hovering above it.
DropDownBorderLight as Color
Determines the light border color of the drop down portion of the control in an idle state.
DropDownBorderLightDown as Color
Determines the light border color of the drop down portion of the control when the mouse is down.
DropDownBorderLightOver as Color
Determines the light border color of the drop down portion of the control when the mouse is hovering over it.
DropDownTriangle as Color
Determines the background color of the drop down disclosure triangle.
DropDownTriangleDown as Color
Determines the background color of the drop down disclosure triangle when the mouse is down.
DropDownTriangleOver as Color
Determines the background color of the drop down disclosure triangle when the mouse is hovering over it.
FontName as String
Sets the font used to display text in the control.
FontSize as Integer
Sets the size of the fond used to display text in the control.
Italic as Boolean
Determines whether the text will be displayed in italics.
PictureDisabled as Picture
Sets the icon to be displayed within the button when the control is disabled.
PictureDown as Picture
Sets the icon to be displayed within the button when the mouse is down.
PictureNormal as Picture
Sets the icon to be displayed within the button when in an idle state.
PictureOver as Picture
Sets the icon to be displayed within the button when the mouse is hovering over it.
ShowFocusRect as Boolean
Determines whether the control will draw a focus rectangle when it has focus.
Style as Integer
Sets the display style of the control.
Valid Values:
Windows 16-bit(0))
Windows 32-bit(1))
Windows XP(2)
Aqua(3)
KDE2(4)
Mac Classic(5)
OfficeXP(6)
Gel(7)
3D Hover(8)
Faded(9)
WordPress(10)
FireFox(11)
Oval Popup(12)
Image Button(13)
TabXP(14)
Inset Orb(15)
Plastic Orb(16)
Neon And Steel(17)
InsetRect(18)
Office2003(19)
Sleek(20)
AYB:Framed(21)
SimpleFlat(22)
Dented(23)
Riveted(24)
Aurora(25)
LongView(26)
LongView Duo(27)
Flock(28)
LongView Trio(29)
Vintage AOL(30)
Dual Grip XP(31)
Picture Frame(32)
Keyboard Keys(33)
GlassTech(34)
Boxed Left(35)
Boxed Right(36)
Pro Outlined Bevel(37)
Glowing Tool(38)
GelCap(39)
Diamonesque(40)
Banded(41)
Electric(42)
Stock(43)
ThinPill(44)
Yahoo!(45)
LongView Quatro(46)
HotNET(47)
LongView Quint(48)
LongView Hexad(49)
Banded Top(50)
Round Media(51)
Soft Bevel XP(52)
Win16 DropDown(53)
FireFox2 Middle(54)
FireFox2 Left(55)
FireFox2 Right(56)
Win32 DropDown(57)
WinXP DropDown(58)
Plastic Middle(59)
Plastic Left(60)
Plastic Right(61)
WinXP DropDown Divided(62)
Soft Bevel XP DropDown(63)
Text as String
The text of the button.
TextColorDisabled as Color
Color of the text when the control is disabled.
TextColorDown as Color
Color of the text when the mouse is down.
TextColorNormal as Color
Color of the text when the control is in an idle state.
TextColorOver as Color
Color of the text when the mouse is hovering over the control.
TextPosition as Integer
Position of the text and picture within the control.
Valid Values:
Center(0)
Left(1)
Right(2)
TextShadow as Boolean
Determines whether the text is drawn with a drop shadow.
TextShadowColor as Color
Color of the drop shadow.
TextShadowOffsetX as Integer
Distance from the standard text that the TextShadow is drawn horizontally.
TextShadowOffsetY as Integer
Distance from the standard text that the TextShadow is drawn vertically.
TextShadowOpacity as Integer
Determines the visibility of the TextShadow. Valid values are 0-255, 0 being visible, 255 being invisible.
Underline as Boolean
Sets the decoration of the text.
UseSystemColors as Boolean
Determines whether the control will use the custom color properties, or the default colors for the styles.