next up previous index
Next: References Up: No Title Previous: Frequently Asked Questions

How to create GIF buttons.

In WDB you can add your own menu buttons to the default WDB menu using the add_menu function. If you would like to create your own GIF buttons with a Motif look - and you have Tcl/Tk installed you can use the following procedure :

% wishx
wishx> button .b -text "Example" -bg gray
wishx> pack .b

... And from a different window ...

% xwd | xwdtopnm | ppmtogif > example.gif

- And click on the Tcl/Tk button you just created.

If you want your button to have transparent background ( - so it also looks nice on browsers that doesn't have gray background ), you can use the following procedure :

% xv example.gif ..... Find color map entry # for bg col (starting with 0)
% gif-trans -t # example.gif > example_btn.gif

See also the Transparent Images Resources List from Yahoo.

    http://akebono.stanford.edu/yahoo/Computers/World_Wide_Web/Programming/Transparent_Images/


next up previous index
Next: References Up: No Title Previous: Frequently Asked Questions

Bo Frese Rasmussen
Sun Mar 3 21:03:09 1996