If define in the compiles should be -DXpm_Pix, not -DXpm_pix. If you are getting the later, then it will not work. As for the loading, I am not really sure what the problem is. Since it loaded some OK, I don't know why it wouldn't load others properly. It (If) there are problems loading the XPM file, it should print out an error message with an error code. --Mark