Recent

Author Topic: Grid of panels  (Read 4344 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Grid of panels
« on: December 09, 2010, 08:58:45 pm »
Hi,

I have no experience in creating visual components. Is possible to create panel on grid cell? I want to get something similar to CellPanel:
http://www.tcellpanel.com-about.com.
I can't find any useful tips on wiki:
http://wiki.lazarus.freepascal.org/Grids_Reference_Page

Regards.

mas steindorff

  • Sr. Member
  • ****
  • Posts: 444
Re: Grid of panels
« Reply #1 on: December 09, 2010, 10:07:11 pm »
You probably know this but if you can create a form with all of the individual components on it that will meet your visual needs, it can be converted into a frame that acts like a single component with custom code. 
Not quite what you asked for but simpler to do.
windows 7/10 - laz 2.0 / 1.2.6 general releases

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: Grid of panels
« Reply #2 on: December 09, 2010, 11:05:58 pm »
I tried this before, but I had problems with performance. I had ~200 panels with align = altop. Each panel had splitter. When I tried change size of first panel, it consume 100% CPU because it calculated tops of all panels in real-time. I noticed that KGrid can draw other components in items. I try check how it's made.

 

TinyPortal © 2005-2018