realbasic-nug
[Top] [All Lists]

Re: image "list"

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: image "list"
From: Dave Wooldridge <electric dot butterfly at mac dot com>
Date: Mon, 31 Mar 2008 09:27:26 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <56bf4dd00803310718y5a808b35jbc4eaf2824fea676 at mail dot gmail dot com> <C22C594F-4C03-475F-82EB-B89253A527E6 at inspiringapps dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>