realbasic-nug
[Top] [All Lists]

Re: listbox.rowpicture

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: listbox.rowpicture
From: James Sentman <james at sentman dot com>
Date: Sat, 28 Apr 2007 10:23:10 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <09F4F8A4-C506-4072-937F-19B1F2EFBCEE at gmail dot com>
On Apr 28, 2007, at 9:41 AM, Tomas Camin wrote:

> Hi all,
>
>
> listbox.rowpicture works just fine when working with small pictures.
> Once you add it it moves the text slightly to the right and
> everything looks just fine. It seems that the text is moved to the
> right by a fixed amount of pixels.
>
> My problem is I'm showing album artwork in a listbox and when the
> picture you add gets bigger it overlaps with the row text.
>
> Any way to workaround this? FR?


Dont use the rowpicture and cell text settings at all. Use the  
CellTextPaint event to draw it yourself. That way you can control  
completely the placement of the picture and text, and if your picture  
makes you use a tall row, then you have room to draw the title large  
and bold at the top and below it in smaller text the band or time or  
something like that. It could make it really nice. I rarely use the  
built in drawing for listboxes that need to display complicated content.

There is the issue of knowing what to draw when the event fires, you  
can store an ID number in the celltag or even an object reference to  
keep that straight.

-James

http://www.MacHomeAutomation.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>