[Lazarus] Custom panel-like TListBox list item

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Feb 28 23:58:34 CET 2010


On Sun, 28 Feb 2010 17:39:47 -0500
Charl van Jaarsveldt <charlvj at gmail.com> wrote:

> For example the list of emails in Outlook when you have the side-by-side
> layout. It will show you who its from and the date at the top of the line -
> left-aligned and right-aligned respectively, and the subject at the bottom
> of the line. I find it a nifty idea to save some horizontal space. Here is
> another example in a nice personal finance program called Buddi:
> http://buddi.digitalcave.ca/images/screenshots/Transactions%20%28OS%20X%29.png
> 
> In Java Swing it is relatively easy: you create a cell renderer and tell the
> list to use it to render the cells, so you create the renderer as a panel
> with its own controls and layout, but Swing is much more
> model-view-controller based. I was thinking the OnCustomDraw event
> (something like that) can be used, but I have never used it before.

Yes, I guess that would be the easiest way.


Mattias




More information about the Lazarus mailing list