3 #----- general machinery -----
9 image create bitmap ims -file /usr/share/ghostscript/8.71/lib/gs_s.xbm
11 tktray::icon .i -class example
12 .i configure -docked 1
20 proc pressed {b x y} {
23 puts "unpost $posted toggle"
26 } elseif {[winfo exists .m$b]} {
29 puts "unpost $posted other"
42 bind .i <ButtonPress> { pressed %b %X %Y }
44 #----- specifics -----
46 .i configure -image ims
47 .m1 add command -command { msel; puts hi } -label hi
48 .m3 add command -command { msel; puts boo } -label boo