Hi,
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?
Micha.

Mailing lists / lazarus / 2003-11
6 messages · 4 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
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?
Micha.
+ From: Vincent Snijders + Sent: vrijdag 21 november 2003 10:04 + + On Fri, 21 Nov 2003…
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.
+ From: Vincent Snijders + Sent: vrijdag 21 november 2003 10:04 + + On Fri, 21 Nov 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
What is control type csCListBox? I can't find any reference to it in lcl\include, that is…
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.
Vincent.
+ From: Vincent Snijders
+ Sent: vrijdag 21 november 2003 10:04
+
+ On Fri, 21 Nov 2003 09:48:50 +0100
+ Micha Nelissen 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.
MArc
What is control type csCListBox? I can't find any reference to it in lcl\include, that is…
Micha Nelissen wroteWhat 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.