Recent

Author Topic: Better grid component?  (Read 3178 times)

Giu

  • Full Member
  • ***
  • Posts: 131
Better grid component?
« on: January 04, 2014, 03:21:40 pm »
Hi all,

I don't remember where (spanish maillist, this forum, wiki...) but some weeks ago, I readed somewhere, about a grid component very interesting. AFAIR was on a conversation about combo or calendar integrated in cells, with this option available in this component.

Somebody knows the name of the component, and where to read about it?

Regards.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Better grid component?
« Reply #1 on: January 04, 2014, 03:38:07 pm »
KGrid?

Giu

  • Full Member
  • ***
  • Posts: 131
Re: Better grid component?
« Reply #2 on: January 04, 2014, 04:50:07 pm »
KControls looks interesting, but not, is not this what I talked about.

wp

  • Hero Member
  • *****
  • Posts: 6462
Re: Better grid component?
« Reply #3 on: January 04, 2014, 05:55:29 pm »
Use the standard TStringGrid:

Follow http://wiki.lazarus.freepascal.org/Grids_Reference_Page#Example:_Working_with_Picklist.2C_How_to_make_it_read_only_and_How_to_fill_it_at_run_time. to build a "picklist" (= combobox) and http://wiki.lazarus.freepascal.org/Grids_Reference_Page#Using_cell_editors (EditorStyle cbsEllipsis) to open the calendar. There is an example in folder lazarus/examples/gridexamples/columneditors for picklist, colordialog and calculator (and more).
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10