Re: Grouping icons

George Eddy (eddy@ISI.EDU)
Wed, 6 Nov 96 16:49:16 PST

According to: graham@isi.edu
> All
>
> I would like to combine several icons into a single icon.
> That is, I would like to "group" the icons together, but rather than
> see the regular cloud icon, I want the original icons to be displayed.
>
> Can this be done? If not, can you give me a pointer that describes how to
> create bitmaps.
>
> Thanks
> --Graham
>
> -------------------------------------------------------------
> Graham Phillips, Information Sciences Institute, Los Angeles
> email:graham@isi.edu
> http://www-scf.usc.edu/~grahamph
> tel/fax: (h) (213) 7480133 (w) (310) 8221511 x225
> -------------------------------------------------------------

say want to use pc.xbm as you've described. Add
the following to your tkined.defaults file:

tkined.group8: pc.xbm Special:PC Group

then you create a group as follows:

set id [ined -noupdate create GROUP]
ined -noupdate icon $id pc.xbm
...

of course you'll need the code to determine what icon to use for the
group based on the icon used by the grouped objects. The key is,
that, unless you tell tkined (via the tkined.defaults line above),
that pc.xbm is a group icon, tkined won't use pc.xbm when it draws the
group, even if though you've added 'ined -noupdate icon $id pc.xbm'.

-- 

- rusty

eddy@isi.edu