[lazarus] Control type csCListBox?

Andrew Johnson acjgenius at earthlink.net
Fri Nov 21 11:57:08 EST 2003


CListBox is a problem for the gtk2 interface as well. just so you know.
I cannot figure out how to properly implement it, and the backward
compatibility doesn't actually support multiple columns properly in
gtk2, so it kinda defeats the purpose of even having a separate one.

There is an issue here with the fact that clist(a very gtk1.2 specific
widget) is intended to also allow widgets within the columns, like
checks buttons images etc, but gtk2 doesn't support this the same way,
it only allows custom drawing etc. So I think more needs to be thought
about where it is currently used and what it is used for and determine
what is possible to implement in all backends consistently. Even if it
means breaking current code.

Andrew

On Fri, 2003-11-21 at 11:45, Micha Nelissen wrote:
> Marc Weustink wrote:
> 
> > + From: Vincent Snijders [mailto:vslist at zonnet.nl]
> > + Sent: vrijdag 21 november 2003 10:04
> > +
> > + On Fri, 21 Nov 2003 09:48:50 +0100
> > + Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
> > +
> > + > Micha Nelissen wrote:
> > + >
> > + > > What is control type csCListBox? I can't find any reference to it in
> > + > >
> > + > > lcl\include, that is used as FCompStyle. Is it the same as
> > + > > csCheckListBox?
> > + >
> > + > Ok, it is certainly not the same...but still: what is it? It's not in
> > + > delphi VCL right?
> > + >
> > + > Micha.
> > + I think it is a multi column listbox. If I remember correctly win32 uses
> > + the same control for listbox with one or more columns, gtk has a widget
> > + for a single column listbox and a widget for multicolumn listbox.
> > 
> > You're right. It was introduced for the multicolumns, and if you ask me,
> > it is a hack and shouldn't be used anymore.
> 
> What's the alternative? A TStringGrid of some sort? Maybe we should 
> remove the TCListBox then? Or at least give a more useful name, it is 
> easy to confuse with TCheckListBox, or that may be just me :).
> 
> Micha.
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives






More information about the Lazarus mailing list