This is my first usage of aiss images, and it's almost working as expected.
I have a horizonital layout group of five Buttons. Before now they used GA_Text labels and looked normal. To add images I replaced each GA_Text tag with the following:
- BUTTON_RenderImage, IIntuition->NewObject(BitMapClass, NULL,
- BITMAP_Screen, screen,
- BITMAP_Masking, TRUE,
- BITMAP_SourceFile, "tbimages:tapepause",
- BITMAP_SelectSourceFile, "tbimages:tapepause_s",
- BITMAP_DisabledSourceFile, "tbimages:tapepause_g",
Of course, slightly changing the filenames as needed.
You may assume that BitMapClass is properly opened and screen is a valid pointer
to struct Screen.
It works, in that I get all the graphics, but the weird part is that the first button
displays the BitMaps properly, and the next four display the images over a black
background instead of the usual grey scaled background.
I tried combinations, looked for differences, apparently I'm just missing it.
I have reviewed the code others have posted for loading AISS images, did not
see a significant difference. I have viewed the images in Multiview and they
are all properly grey there.
I'm just hoping someone has seen this and can suggest a fix.
I have an image available, but it's not hosted.. :(