Win 32Lib0.42: how use XPM graphics?

new topic     » topic index » view thread      » older message » newer message

David,

I assume this is another really silly question, but: how do you use XPM
graphics in a program?

The data structure of the xpm constant looks reasonable & understandable,
but I can't get an xpm to display.   I've tried reading the documentation &
examples, particularly "generic".  Then I tried creating a bitmap control
with xpmToBmp(my_xpm) as last parameter;  then a bitmap control with "0" as
last parameter & then setBitmap(control,xpmToBmp(my_xpm)); & then I tried
making a bitmap control with "createDIB(xpmToBmp(my_xpm))" as last
parameter, but only the last put anything at all on the screen & it wasn't
right.

Dan Moyer

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu