M.R.Dobie@ecs.soton.ac.uk (12/12/90)
I am new to Xview, so if I have missed anything obvious, flame away :-) OK, here's the problem. I have an icon which I want to load in from an icon file at run time, so I use the icon_load function (which is in the SunView manual but also in the xview include files so I thought it would be OK). Anyway, it all works fine. Then I want to invert the icon (black to white, not upside down :-|) Somewhere in O'Reilly volume 7 I read that I should use all the X graphics calls, so I read about Pixmaps and graphics contexts and XCopyArea to do the inversion. To get a Pixmap I got the ICON_IMAGE from the icon to give me a Server_image. Then I tried to get the SERVER_IMAGE_PIXMAP from the Server_image to give me a Pixmap to invert. This is where it goes wrong. Whenever I try to get some attribute of the Server_image I get an error, XView warning: Object 0xdc40, invalid object (embedding seal incorrect), xv_get Several thoughts occured to me. Can you only get a Server_image from an icon if it was created with a Server_image? Is icon_load the wrong thing to use? I tried my code in different parts of the program (before xv_main_loop and in an event procedure). Does anyone know what the matter is? -- Mark