Recent

Author Topic: Question about editors  (Read 1339 times)

fmolina

  • New Member
  • *
  • Posts: 40
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: 11853
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.

fmolina

  • New Member
  • *
  • Posts: 40
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