Recent

Author Topic: [CLOSED] How to use TtiCheckGroup?  (Read 2195 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1289
[CLOSED] How to use TtiCheckGroup?
« on: January 27, 2022, 07:37:29 am »
Hi,

I can put many boolean properties in tticheck group. How can I link each item with corresponding properties?
« Last Edit: January 28, 2022, 08:08:28 am by egsuh »

speter

  • Sr. Member
  • ****
  • Posts: 349
Re: How to use TtiCheckGroup?
« Reply #1 on: January 28, 2022, 12:25:47 am »
I am not sure that you can access the properties of the group items.

The wiki example (@ https://wiki.lazarus.freepascal.org/TCheckGroup) shows you can work out which items are checked. :)

But the info on TCheckGroup (@ https://lazarus-ccr.sourceforge.io/docs/lcl/extctrls/tcheckgroup.html) doesn't mention the checked property (except in passing - in the comment about autofill). :o

cheers
S.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: How to use TtiCheckGroup?
« Reply #2 on: January 28, 2022, 12:36:03 am »
Hi!

It's the same logic like the TCheckGroup
Code: Pascal  [Select][+][-]
  1.  
  2. TICheckGroup1.Checked[2] := true;

Winni

speter

  • Sr. Member
  • ****
  • Posts: 349
Re: How to use TtiCheckGroup?
« Reply #3 on: January 28, 2022, 05:54:10 am »
Egsuh, I was thinking you wanted to (for example) change the colour or font-size of a particular checkbox caption!?
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

egsuh

  • Hero Member
  • *****
  • Posts: 1289
Re: How to use TtiCheckGroup?
« Reply #4 on: January 28, 2022, 08:08:13 am »
Hi, Thank you for those who gave advices.  Sorry, I was too busy during a couple of days and couldn't get into this.
Actually, I found out that I can access TCheckGroup's individual items only via the index.
I have to devise some integer value to use it directly, I guess.

 

TinyPortal © 2005-2018