Recent

Author Topic: Make virtualtreeview editors  (Read 4073 times)

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Make virtualtreeview editors
« on: May 13, 2016, 12:44:53 pm »
Hi,

As I couldnt find any good grid for Lazarus that has good speed (KGrid is good but slow for thousands of records) I want to use VTV but problem is it's demo are not good for making editors and the only demo hasnt use autosize controls so for example if you have ComboBox to show on column it will not get a good size.
I tried and change things to make it work like changing ComboBox style and ItemHeight but it seems not a good answer and Im afraid it will not a multi platform solution.

So I want to ask from who used VTV as a grid in real life projects as a Grid, what is the best approach for using and making Editos for VTV?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12838
  • FPC developer.
Re: Make virtualtreeview editors
« Reply #1 on: May 13, 2016, 01:17:47 pm »
I used one of the tabs of the "advanced"  demo as example.

I have some minor issues that sometimes you have to select a control twice.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: Make virtualtreeview editors
« Reply #2 on: May 13, 2016, 01:25:38 pm »
I used one of the tabs of the "advanced"  demo as example.

I have some minor issues that sometimes you have to select a control twice.
I used it too and spent the yesterday on it but I have many issues with it like Control be fit on column or making it AutoEdit (Automatically edit when a column get focused) or EditControls inheritance so I can make a base main control with some extra property (My code works ok on Delphi but not in Lazarus) . Problem is it need many different edits to be good as a good Grid.

@marcov After using it on your projects do you think VTV (even after making it as a usefull grid) can be a good choice to spend time on it or I should look for another replacement or go back to Delphi for Grid-Based applications?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12838
  • FPC developer.
Re: Make virtualtreeview editors
« Reply #3 on: May 13, 2016, 04:43:13 pm »
@marcov After using it on your projects do you think VTV (even after making it as a usefull grid) can be a good choice to spend time on it or I should look for another replacement or go back to Delphi for Grid-Based applications?

No idea. I'm not a database app programmer, this grid is to for parts of my apps' configuration. I can databind TXMLConfig files to it.

A bit playing and while not perfect it was ok. I mainly did it under Delphi but at the time also ran it under lazarus/windows.  But nowadays the delphi codebase uses vtv5

One could also see if TMS has some grid that supports lazarus.

zeljko

  • Hero Member
  • *****
  • Posts: 1922
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Make virtualtreeview editors
« Reply #4 on: May 13, 2016, 06:59:06 pm »
It actually have TMSUIPack and grid is inside, but it's slow for mentioned purposes.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: Make virtualtreeview editors
« Reply #5 on: May 22, 2016, 02:13:11 pm »
Can anyone point me to a simple example? Advanced demo with package make me confused.
A simple way to just show for example a checkbox on a column.

 

TinyPortal © 2005-2018