Not so simple.
It has to do with how you load the images into the Image Gadget and tell the mouse what to draw.
to start with:
Code: Select all
Global Image1, Image2, Image3
Image1= CatchImage(#Image_1, ?Image1)
Image2= CatchImage(#Image_2, ?Image2)
Image3= CatchImage(#Image_3, ?Image3)
DataSection
Image1:
IncludeBinary "colormap1.jpg"
Image2:
IncludeBinary "greyscale.jpg"
Image3:
IncludeBinary "plopscale.jpg"
EndDataSection
Does load the images into the program for use... Yay!!!
I modified the BOLD portion so as NOT to confuse the Image Gadget
Image1= CatchImage(
#Image_1, ?Image1) where it had been
#PB_Any which was misleading the program and is what my image never showed up or returned only WHITE
then I modified the Image Gadget a bit:
Code: Select all
ImageGadget(#Image_1, 6, 12, 597, 523, ImageID(#Image_1), #PB_Image_Border | #PB_EventType_LeftClick)
RegisterGadgetEvent(#Image_1, @Image_1_Event())
theline:
ImageGadget(#Image_1, 6, 12, 597, 523, ImageID(
#Image_1),
Had:
Image1 in that spot. So it was agreement that was thunking this apart... Though I do not see whay that wuld not have worked since they referenced the same thing???
I did not need the LoadImage() commands since the program already had them in memory because of Catchimage()
Oh well on to the finish!
Thank everyone for helping me. I know I am slow.