<div>The first paramether is a photo object. You can see an example of how to load an image at the source code for cl-cbr: <a href="http://common-lisp.net/project/nixies/download/clcbr_latest.tar.gz">http://common-lisp.net/project/nixies/download/clcbr_latest.tar.gz
</a></div>
<div> </div>
<div>But to add an image to a button you only have to pass Its name as a paramether when creating It. If the image isn't in a valid format, Ltk don't loads It. You can use convert, which is part of ImageMagick, to convert images to ppm.
<br><br> </div>
<div><span class="gmail_quote">2006/8/16, Bill Ramsay <<a href="mailto:ramsayw1@verizon.net">ramsayw1@verizon.net</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I'm trying to add an image or icon to a menubutton (or regular button)<br>and I don't quite get how it works.
<br><br>What does the first parameter of image-load represent (i.e. photo as in<br>(image-load photo "x.ppm"))?<br>Should I be working with bitmaps instead of images?<br>How does the result of the load get assigned to the widget?
<br>And how does the :anchor or :justify get placed on the icon as opposed<br>to the button text or the button itself?<br><br>Is there an example of this anywhere?<br><br>Thanks,<br><br>Bill<br>_______________________________________________
<br>ltk-user site list<br><a href="mailto:ltk-user@common-lisp.net">ltk-user@common-lisp.net</a><br><a href="http://common-lisp.net/mailman/listinfo/ltk-user">http://common-lisp.net/mailman/listinfo/ltk-user</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>Felip Alàez Nadal