Recent

Author Topic: RowSelect in TListView?  (Read 10709 times)

Adam.Pilorz

  • Jr. Member
  • **
  • Posts: 67
    • http://www.pilotmp3.devtown.net
RowSelect in TListView?
« on: October 21, 2004, 03:25:47 pm »
I have a question about TListView component. In Delphi I can set RowSelect property to true, and the user can click anywhere in ListView and it will select whole row. Unfortunately there is no such property in Lazarus. How can I solve it?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
RowSelect in TListView?
« Reply #1 on: October 22, 2004, 11:23:08 am »
If it doesn't work, it isn't implemented yet.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Adam.Pilorz

  • Jr. Member
  • **
  • Posts: 67
    • http://www.pilotmp3.devtown.net
RowSelect in TListView?
« Reply #2 on: October 23, 2004, 06:28:28 pm »
Well, I know it isn't implemented yet, but my question is, can I do it any other way or when can I expect it to be implemented.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
RowSelect in TListView?
« Reply #3 on: October 25, 2004, 11:58:11 am »
No, you can't do it anotherway (if you are using win32 only there may be one, but that is almost the same as implementing it in the LCL (*))
I won't give an exact date, but it is somewhere after I get debugging on win32 fully operational. The (win32) Listview is next on my todo list







(*) on win32 TWincontrol.Handle is the windows handle of the underlying widget. You can send win32 api messages to enable rowselect. THis will work now, but no guaranties if it works in the future.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Adam.Pilorz

  • Jr. Member
  • **
  • Posts: 67
    • http://www.pilotmp3.devtown.net
RowSelect in TListView?
« Reply #4 on: October 25, 2004, 04:40:11 pm »
Hmm... In Delphi Help I've read, that TTreeView can be used the same way as TListView with vsReport ViewStyle. Is it posible in Lazarus? And if it is, how can I do it (in Delphi help I haven't found it). I'm asking, because RowSelect is implemented in TTreeView and if it is possible I could use TTreeView instead of TListView (as either way I'm using TListView with vsReport ViewStyle).

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
RowSelect in TListView?
« Reply #5 on: October 26, 2004, 02:32:18 pm »
huh, I didn't know that a treeview with columns was supported in Delphi (and native win32)
(and if you have one column, there is no much need for a row select)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Adam.Pilorz

  • Jr. Member
  • **
  • Posts: 67
    • http://www.pilotmp3.devtown.net
RowSelect in TListView?
« Reply #6 on: October 26, 2004, 06:31:58 pm »
Ok, but is it posible to use TTreeView with columns in Lazarus? If yes, how to do it, as I couldn't find any info about it... :(

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
RowSelect in TListView?
« Reply #7 on: October 27, 2004, 11:48:28 am »
It is not possible (it may in a future native version of ttreeview, but don't expect it soon)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018