Sign in Join

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

Mailing lists / lazarus / 2018-12

TListView + OwnerData=true + CheckBoxes

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Marcos Douglas B. Santos

Hi,
Has anybody already used, with success, virtual ListView showing CheckBoxes?

There are any links on Internet, most about Delphi, but each one say something little different then other.
I've tried a few combinations reading those links with no success. I haven't tried any that says that we need to paint the checkboxes with complex algorithms because I think that it should be simpler.

Lazarus 1.9.0 r58537 FPC 3.1.1 i386-win32-win32/win64

best regards,
Marcos Douglas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20181209/2e49f340/attachment.html>

Reply by email

zeljko
to Marcos Douglas B. Santos
Marcos Douglas B. Santos wrote 8 lines
Hi, Has anybody already used, with success, virtual ListView showing CheckBoxes? There are any links on Internet, most about Delphi, but each one say something little different then other. I've tried a few combinations reading those links with no success. I haven't tried any that says that we need to paint the checkboxes with complex algorithms because I think that it should be simpler.

If you use Themes for checkboxes it's pretty easy. Never used virtual TListView with checkboxes so don't know it's behaviour....

zeljko

Reply by email

Marcos Douglas B. Santos
to zeljko
PM zeljko wrote 13 lines
On 12/09/2018 12:58 PM, Marcos Douglas B. Santos via lazarus wrote: > Hi, > Has anybody already used, with success, virtual ListView showing CheckBoxes? > > There are any links on Internet, most about Delphi, but each one say > something little different then other. > I've tried a few combinations reading those links with no success. I > haven't tried any that says that we need to paint the checkboxes with > complex algorithms because I think that it should be simpler. If you use Themes for checkboxes it's pretty easy. Never used virtual TListView with checkboxes so don't know it's behaviour....

I don't know what Themes is.
I want to use just default components.

...and nobody more answered.
Is everybody using TDBGrid to show their data? :)

regards,
Marcos Douglas

Reply by email

zeljko
to Marcos Douglas B. Santos
Marcos Douglas B. Santos wrote 5 lines
I don't know what Themes is. I want to use just default components. ...and nobody more answered. Is everybody using TDBGrid to show their data? :)

No. Use TVirtualStringTree instead of TListView, it's x10 faster.

zeljko

Reply by email

Marcos Douglas B. Santos
AM zeljko wrote 21 lines
On 12/11/2018 12:44 PM, Marcos Douglas B. Santos wrote: > On Tue, Dec 11, 2018 at 5:40 AM zeljko wrote: >> >> On 12/10/2018 08:38 PM, Marcos Douglas B. Santos via lazarus wrote: >> >>> I don't know what Themes is. >>> I want to use just default components. >>> >>> ...and nobody more answered. >>> Is everybody using TDBGrid to show their data? :) >> >> No. Use TVirtualStringTree instead of TListView, it's x10 faster. > > Do you mean this https://github.com/blikblum/VirtualTreeView-Lazarus ? I'm using an older implementation (v.4.8) of VirtualTrees, and yes, I've checkouted it from blikblum page. Online Package Manager (OPM) for lazarus installs TVirtualStringTree by default , so you already have it in lazarus if you're using trunk or 2.0RCxx (2.0 fixes).

I've searched by TVirtualStringTree on
http://packages.lazarus-ide.org/ and haven't found. My ENV is Lazarus 1.9.0 r58537 FPC 3.1.1 i386-win32-win32/win64 I have several IDE versions but, for that project I cannot update my ENV cause other developers are using the same version above.

But, about TVirtualStringTree, is it easy to do what I need, ie, using virtual data (as records) with checkboxes showing automagically?

best regards,
Marcos Douglas

PS: sorry, I have sent the previous email just for you.

Reply by email

zeljko
to Marcos Douglas B. Santos
Marcos Douglas B. Santos wrote 8 lines
I've searched by TVirtualStringTree on http://packages.lazarus-ide.org/ and haven't found. My ENV is Lazarus 1.9.0 r58537 FPC 3.1.1 i386-win32-win32/win64 I have several IDE versions but, for that project I cannot update my ENV cause other developers are using the same version above. But, about TVirtualStringTree, is it easy to do what I need, ie, using virtual data (as records) with checkboxes showing automagically?

Yes, TVirtualStringTree have great concept so you can do whatever with your data. It load's millions of rows in a part of second. CheckBoxes can be in any column.

zeljko

Reply by email

John Landmesser
to Marcos Douglas B. Santos: I've searched by TVirtualStringTree on http://packages.lazarus-ide.org/ and haven't…

perhaps useful:

http://tinyurl.com/y8p4zzf3

Marcos Douglas B. Santos wrote 30 lines
On Tue, Dec 11, 2018 at 10:06 AM zeljko wrote: > On 12/11/2018 12:44 PM, Marcos Douglas B. Santos wrote: >> On Tue, Dec 11, 2018 at 5:40 AM zeljko wrote: >>> On 12/10/2018 08:38 PM, Marcos Douglas B. Santos via lazarus wrote: >>> >>>> I don't know what Themes is. >>>> I want to use just default components. >>>> >>>> ...and nobody more answered. >>>> Is everybody using TDBGrid to show their data? :) >>> No. Use TVirtualStringTree instead of TListView, it's x10 faster. >> Do you mean this https://github.com/blikblum/VirtualTreeView-Lazarus ? > I'm using an older implementation (v.4.8) of VirtualTrees, and yes, I've > checkouted it from blikblum page. > Online Package Manager (OPM) for lazarus installs TVirtualStringTree by > default , so you already have it in lazarus if you're using trunk or > 2.0RCxx (2.0 fixes). I've searched by TVirtualStringTree on http://packages.lazarus-ide.org/ and haven't found. My ENV is Lazarus 1.9.0 r58537 FPC 3.1.1 i386-win32-win32/win64 I have several IDE versions but, for that project I cannot update my ENV cause other developers are using the same version above. But, about TVirtualStringTree, is it easy to do what I need, ie, using virtual data (as records) with checkboxes showing automagically? best regards, Marcos Douglas PS: sorry, I have sent the previous email just for you.

Reply by email