Recent

Author Topic: ListView and OwnerData  (Read 11091 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1057
ListView and OwnerData
« on: March 21, 2009, 10:03:30 pm »
Hi,
In Delphi TListView is property OwnerData but I can't find comparable property in Lazarus TListView. I have own data in TList records and I want show them on TListView. I found VirutalThree but on my latest snapshot lazarus version I can't install it. I have Error: Identifier not found "LM_COPYTOCLIP". I remember at some time I install this component without errors.

jamhitz

  • Jr. Member
  • **
  • Posts: 83
Re: ListView and OwnerData
« Reply #1 on: January 10, 2010, 07:53:34 pm »
In virtualtrees.pas change:

  LM_COPYTOCLIPBOARD to LM_COPY
  LM_PASTEFROMCLIPBOARD to LM_PASTE ...and
  LM_CUTTOCLIPBOARD to LM_CUT

...seems like lmessages.pas changed.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2680
Re: ListView and OwnerData
« Reply #2 on: January 11, 2010, 01:45:23 am »
Wow, how old are those sources  ?.
I remember these messages existed, but I cannot find them in the svn history, so it seems from before that.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: ListView and OwnerData
« Reply #3 on: January 30, 2010, 05:30:23 pm »
Hi,

Sorry for the refresh thread after such a long time, but it is probably better than creating a new one. I'm curious how it looks now the case with OwnerData? I found this topic:
http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg04117.html
It seems that this option was before. In sources, TListView.OwnerData property is commented (visible only in protected TCustomListView section). Why was it disabled? Currently I am using VirtualTreeView but I do not need 99% of its options. The ideal solution for me is TListView with OwnerData

Regards

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: ListView and OwnerData
« Reply #4 on: April 07, 2015, 12:39:54 pm »
This thread is old, OwnerData is implemented in the meantime for all widgetsets.

 

TinyPortal © 2005-2018