Index Parent

SpeedButton class


The SpeedButton class is a subclass of Area class and it is used to create very cute image buttons.

Speedbutton is a subclass of Speedbutton.mcc so you must have Speedbutton.mcc in MUI:Libs/MUI to use it.

 

Attributes
Name Type Class Note
BorderLess B I If set to 0 you get a button without borders
EnableUnderscore B IS If set to 1 you enable underscoring and key char. Note that it may be set iff it was set to 1 at Init time
Image S I Name of a picture file to load via datatypes
ImmediateMode B I If set to 1 you get an Immediate button
Label S I A text to use as label for the button
LabelPosition M ISGN G2N A number or one of:
  • Bottom
  • Top
  • Right
  • Left
MinHeight B I If set to 1 the button is y-unlimited
MinWidth B I If set to 1 the button is x-unlimited
NoClick B I If set to 1 the button is no input
Raising B IS If set to 1 a frame will be drawn when the mouse is over the button. Use only iff Borderless is 1
SmallImage B I If set to 1 you get a scaled image (the factor of which is settable in MUI prefs/SpeedBar)
StripUnderscore B I If set to 1 the underscores will be stripped from the label
Sunny B I If set to 1 you get a gray scale image, colored when the mouse is over the object
ToggleMode B I If set to 1 you get a Toggle button
ViewMode M ISGN G2N A number, or one of:
  • TextGfx (0)
  • Gfx (1)
  • Text (2)

To modify it you must: InitChange the group the SpeedButton belongs to, set the attribute, ExitChange the group

 

Methods
Name Parameters Note
None defined