Recent

Author Topic: Question about editors  (Read 363 times)

fmolina

  • New Member
  • *
  • Posts: 31
Question about editors
« on: July 10, 2020, 02:30:12 am »
Hi,
Is there support for TCheckboxes and TComboBoxes as cell editors in FPSpreadsheet? If no, is it planned?
Thanks

wp

  • Hero Member
  • *****
  • Posts: 7552
Re: Question about editors
« Reply #1 on: July 10, 2020, 10:56:57 am »
TsWorksheetGrid has the same inheritance as TStringGrid, and thus should behave like that regarding specialized cell editors. So, basically, all what is written about this topic in https://wiki.lazarus.freepascal.org/Grids_Reference_Page#Using_cell_editors should be valid, too. However, since TsWorksheetGrid was written to mimic the Office spreadsheet applications there may be some conflicts here and there.

The attached demo shows that the combobox editor works almost correctly out of the box, but the checkbox editor would require some work. I am not planning to extend this on my own, but useful patches will be accepted.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

fmolina

  • New Member
  • *
  • Posts: 31
Re: Question about editors
« Reply #2 on: July 11, 2020, 05:03:42 am »
Thanks, I will try to get checkbox working

 

TinyPortal © 2005-2018