11-44
Now for the formatted string:
Finally, letÕs insert a bitmap image into our panel to Þnish it off.
1. Click in the StudioWare toolbar to select the Text tool.
2. Click anywhere in the panel.
3. Right-click on the text widget and choose
Properties
.
4. Choose Volume from the Alias list.
5. Enter The Volume is %d in the Label field.
6. Click OK when you are done.
From now on, when you adjust the volume using the slider, the text
string will be updated automatically. The %d is replaced by the actual
value of the Volume alias.
1. Click in the StudioWare toolbar to select the Image tool.
2. Click anywhere in the panel.
3. Right-click on the image widget and choose
Foreground Bitmap
.
4. Enter the name of the bitmap file you want to use and click OK.
The image is automatically stretched or shrunk to fit within the defined
area of the widget. You can increase or decrease the size of the widget
just like any other widget. If you set the background bitmap and leave
the foreground bitmap unassigned, the bitmap will be tiled across the
image widget like wallpaper.