Index Parent

Speedbar class


The Speedbar class is used to create image buttons bars.

A speedbar button is a group and so any attribute of the Group class can be used with it.

Speedbar is a subclass of Speedbar.mcc so you must have Speedbar.mcc in MUI:Libs/MUI to use it. Speedbar.mcc is copyright of Simone Tellini.

This lines create a complete speedbar:

   speedbar.class="SPEEDBAR"
    speedbar.spread=0
    speedbar.Horiz=1
    speedbar.0.Img="back.iff"
    speedbar.0.Text="Back"
    speedbar.1.Img="forward.iff"
    speedbar.1.Text="Forward"
    speedbar.2.Img="reload.iff"
    speedbar.2.Text="Reload"
    speedbar.3.Img="stop.iff"
    speedbar.3.Text="Stop"
    speedbar.4.Img="home.iff"
    speedbar.4.Text="Home"
    speedbar.5.Img="find.iff"
    speedbar.5.Text="Find"
    res=newobj("speedbar","speedbar")

You will create a group called speedbar with 6 children called speedbar.0 ... speedbar.6 .

You can't remove and/or dispose the single buttons but only the whole bar .

 

ATTRIBUTES
Name Type Class Note
BorderLess B IS  
RaisingFrame B IS  
SameHeight B I  
SameWidth B I  
SmallImages B IS  
Spacer S I Path to a datatype picture file to use as spacer
Spread B I  
Sunny B IS  
ViewMode M ISG G2N A numer or one of:
  • TextGFX
  • GFX
  • Text

 

ATTRIBUTES FOR A SINGLE BUTTON
Name Type Class Note
Img S I Path to a datatype picture file or Spacerto add a space at that position
Text S I  
Help S I  
Flags S I One of:
  • Disabled
  • Selected
  • Immediate
  • Toggle

 

 

METHODS
Name Parameters Note
Disable <button/N>,<value/N>  
Show <button/N>,<value/N>