| reating
Images for Buttons The ImageURLButtonBar can support as many as five different images for button states: a "base" image, a "mouseOver" button image, a "mouseOver2" button image (for animation), a "mouseDown" image, and a "buttonsDisabled" image. The basics of creating ImageURLButtonBar button images can be summarized as follows:
An example should clarify this: Suppose we wish to create a horizontal button bar with two unique images for each button. One image will be used for the "base" image, and the other image will be used when the mouse is moved over a button (the "mouseOver" image). Note that images for other buttons states will be created automatically by the applet. The "base" image we create is: and the "mouseOver" image we create is: The resulting button bar is shown below. (Try it! The URLs are disabled so clicking a button will not cause another page to be loaded.) Notice that each button ("Home," "Java," etc.) is in exactly the same position on each bar, and that each bar is exactly the same size. These are the two key points to remember when creating your own button bars. | |||||||||||||||
ips
for Creating Button Bars
| |||||||||||||||
| Copyright © 1997 by Modern Minds, Inc. | |||||||||||||||