Home | About | Documentation | Download I-Con.dk 
     
  next up previous external
Up: WDB Installation and Users 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 external
Up: WDB Installation and Users Previous: Frequently Asked Questions

Copyright © 1996 Bo Frese Rasmussen
Last update: Sun Mar 10 22:57:31 1996
Latest News
  • New Homepage!
         24-Feb-2000
  • SourceForge Hosting
         5-Mar-2000
  • Downloads
  • WDB Ver.1.4
         6-Mar-1996
  • WDB Ver.2.000 beta
         24-Feb-2000
  •  


    Copyright © Bo Frese   Last modified: 05-03-2000