[lazarus] TBitmap: Loading and drawing

Shane Miller SMiller1 at stvgb.org
Thu Mar 16 09:29:53 EST 2000


I attempted to add a function to TBitmap called LoadFromXPMFile to see if I could load an XPM file and use the Speedbutton's canvas to draw it to the button.  I failed..  :-(

Can someone look at the code in gtkobject and tell me what the problem is?  I am getting a gtk error when I try to load the XPM saying that the assert width != 0 and height !=0 failed.  Why are they zero?!!!

Shane







More information about the Lazarus mailing list