Still interested in the answers but I solved my problem; I now cl.create an unstored empty cl, cl.setastray it, manipulating the real Tray list, then cl.setastray the real Tray list.
--- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote: > > I'm trying to manipulate the command list assigned to tray. I can > insert an item, addleft, addright, seticon, etc. with no problem, > the new item displays and functions properly. But if I > subsequently remove the item, even if I first clear everything, > cl.refresh, cl.redisplay, etc., an unwanted icon is still visible > in the tray (however, its position in the tray has changed and it > no longer does anything if clicked, etc.). > > The command list is pcf-resident, and I also do cl.savepcf(). I > do not have "tray support" installed (which you once told me > serves a different purpose than tray command list). > > If I restart PowerPro, the unwanted icon is gone, so I know its > nothing wrong with my commands. But I don't want to restart > PowerPro. So I came up with the idea to switch between a command > list that has the additional icon and one that doesn't. > Cl.setastray works, it immediately alter the icons displayed. > Trouble is, I can't figure out how to identify the cl which is > currently assigned to tray. Is there some way to do it? Also is > it possible to unassign the tray command list, i.e., go for > command list "xyz" to none? > > Thanks, > Sheri >
