Recent

Author Topic: StringGrid cbs... events  (Read 4662 times)

asdf

  • Sr. Member
  • ****
  • Posts: 310
StringGrid cbs... events
« on: February 05, 2011, 05:43:20 pm »
1. cbsCheckBoxColumn
    I have assigned ValueChecked = '1' & ValueUnchecked = '0'
    and in a column of every row StringGrid1.Cells[x,x] = '0' = unchecked.

   When I clicked/ticked such a cell to have it checked, what is the procedure for this event ? I tried to use StringGrid1Check, it gave '1' after this procedure finished, not in the procedure.
   
2. cbsButtonColumn ... what is the procedure for this event ? And how can I put a small .jpg picture on the button when click it.

3. cbsPickList ... what is the procedure for this event ?
Lazarus 1.2.4 / Win 32 / THAILAND

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: StringGrid cbs... events
« Reply #1 on: February 05, 2011, 07:39:39 pm »
Methods are:

1) TStringGrid.OnCheckBoxToggled

2) TStringGrid.OnEditButtonClick

3) TStrinGrid.OnPickListSelect

but I don't know if it is possible to paint picture on these buttons. Usually only text. Maybe some OwnerDraw method but I never did it.
And better no *.jpg. Rather use small *.png for application icons on BitBtns glyphs.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

 

TinyPortal © 2005-2018