CompuServe Thread

#Image

3 messages in this thread
#29543From: Steven ParkOct 23, 1992 7:23 PM
The RKM in RefreshGadgets says you can RemoveGadget() then "After changint the Image, Border, Text … the gadget is replaced in the Gadget List … How can you change an Image since they won't take variables only constants. Do you have an alternate Image struct?
#29570From: John Toebes/SYSOPOct 24, 1992 7:24 PM
I am not sure exactly the question you are asking, but generally for manipulating any part of a gadget, you have to do a RemoveGadget() then the work followed by an AddGadget(). Actually, I tend to use the GList version of the routines because I am almost always dealing with more than one gadget. For an Image sturcture, I don't understand the comment about constants/variables. You can declare an image structure as part of your code and then point the image data pointer to some chip ram that you allocate (or declare as __chip). I can provide an example if this is what you are asking.
#29572From: Steven ParkOct 24, 1992 8:42 PM
That's exactly what I'm looking for. An example would be greatly appreciated.