On Mar 31, 2008, at 7:26 AM, Joe Strout wrote:
> On Mar 31, 2008, at 8:18 AM, Tony Rudzki wrote:
>
>> Is it possible to have a "list" of images that a user could select
>> from?
>
> Then I'd suggest doing it with a Listbox. :) No, seriously -- set
> the DefaultRowHeight to an appropriate size, and draw each image in
> the CellTextPaint event.
Yes, like Joe suggested, use image handling code in the CellTextPaint
to open and display the image in the exact size and placement you want
in the listbox cell -- much better control and flexibility than the
16x16 icon limitation of RowPicture. I used the CellTextPaint event
extensively and created my own listbox subclass to do something
similar in my Stimulus app <http://www.ebutterfly.com/stimulus/>,
providing users with a way to display image thumbnails in either a
small size (32x32) or large size (70x70).
Regards,
Dave Wooldridge
Electric Butterfly
http://www.ebutterfly.com
-------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|