Forum > LCL

[CLOSED] How to use TtiCheckGroup?

(1/1)

egsuh:
Hi,

I can put many boolean properties in tticheck group. How can I link each item with corresponding properties?

speter:
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.

winni:
Hi!

It's the same logic like the TCheckGroup
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- TICheckGroup1.Checked[2] := true;
Winni

speter:
Egsuh, I was thinking you wanted to (for example) change the colour or font-size of a particular checkbox caption!?

egsuh:
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.

Navigation

[0] Message Index

Go to full version