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>

Reply via email to