hallett@enterprise.positron.gemed.ge.com (Jeff Hallett x5163 ) (08/22/90)
Hi there!
First a promised summary:
No one sent me help in changing the base frame's icons dynamically. I
did manage to figure it out. Basically, when one uses xv_set(frame,
FRAME_ICON, anIcon, 0) it "empties" the icon, leaving it in such a
state that the ICON_IMAGE won't load anymore. Further, this call will
not change a frame's icon once the frame is rendered. So, I found
that the following sequence works:
Icon currentIcon;
extern Icon newIcon; /* previously defined somewhere and created */
extern Frame theFrame; /* the base frame in question */
currentIcon = (Icon)xv_get(theFrame, FRAME_ICON);
(void)xv_set(currentIcon, ICON_IMAGE,
xv_get(newIcon, ICON_IMAGE), XV_NULL);
(void)xv_set(theFrame, FRAME_ICON, currentIcon, XV_NULL);
This is the only way I've found to do it.
Now, a question:
How do I create a color bitmap/icon? Specifically, I'd like to know
how to draw a color icon and use it as a base frame's icon. I'm
gathering that I will at least need a color drawing tool. Anybody got
one? If anyone has a code sample on using a color bitmap for an icon,
I'd appreciate it.
Thanks in advance,
--
Jeffrey A. Hallett, PET Software Engineering
GE Medical Systems, W641, PO Box 414, Milwaukee, WI 53201
(414) 548-5163 : EMAIL - hallettJ@gemed.ge.com
"Keep that sense of humor. It's critical."