| Index | Parent | Speedbar class |
The Speedbar class is used to create image buttons bars.
Speedbar class 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 <wiz@vapor.com> .
A speedbar button is a group and so any attribute of the Group class can be used with it.
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 NOT remove and/or dispose the single buttons but only the whole bar .
See sb.rexx
| 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 an iff to use as spacer |
| Spread | B | I | |
| Sunny | B | IS | |
| ViewMode | M | ISG G2N | TEXTGFX GFX TEXT |
| ATTRIBUTES FOR A SINGLE BUTTON | |||
|---|---|---|---|
| Name | Type | Class | Note |
| Img | S | I | Path to a iff |
| Text | S | I | |
| Help | S | I | |
| Flags | S | I | DISABLED SELECTED IMMEDIATE TOGGLE |
If Img is SPACER , a spacer is added at that position.
| METHODS | ||
|---|---|---|
| Name | Parameters | Note |
| Disable | <button/N>,<value/N> | |
| Show | <button/N>,<value/N> | |
Bugs:
Should accept Add and Remove methods.