Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

Control type csCListBox?

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Micha Nelissen

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.

Reply by email

Micha Nelissen
to Marc Weustink: + From: Vincent Snijders + Sent: vrijdag 21 november 2003 10:04 + + On Fri, 21 Nov 2003…
Marc Weustink wrote 23 lines
+ 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.

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.

Reply by email

Andrew Johnson
to Marc Weustink: + 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

Micha Nelissen wrote 36 lines
Marc Weustink wrote: > + 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. 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 with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Vincent Snijders
to Micha Nelissen: What is control type csCListBox? I can't find any reference to it in lcl\include, that is…
Show quoted text 11 lines
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.

Vincent.

Reply by email

Marc Weustink
to Vincent Snijders

+ 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

Reply by email