[Next] [Up] [Previous] [Contents]
Next: References Up: WDB - A Web Previous: E Frequently Asked Questions

F 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] [Contents]
Next: References Up: WDB - A Web Previous: E Frequently Asked Questions



Send comments to Benoit Pirenne
Mon May 1 19:21:09 GMT+0100 1995