Adding TCheckBox to TCheckGroup lazarus / 10-Designer ---------------------------------------------------------------------- sfeinst · 2010-10-16 00:34 I know I'm missing something obvious, but I need help.  I have a TCheckGroup with 3 checkboxes in it.  I want to add another TCheckBox, but I want it listed first.  When I add it, it always gets added to the end.  I've tried dragging it on the form as well as in the Object Inspector.  I've tried playing with the tab order.  Nothing works.  The only thing i have not touched is the Anchors.  The other checkboxes do not have anything except akTop, akBottom and akLeft (the defaults) and I left the new one that way.  I'm guessing that if I play with the Anchors dialog, I can do something, but since the existing checkboxes work ok, I am reluctant to play around with the anchors dialog for these items. The only way I got it to work was to drag the existing checkboxes out of the TCheckGroup into another group, add the new TCheckBox and then drag the existing ones back inthe order I wanted. Is that the only way to rearrange? ---------------------------------------------------------------------- Leledumbo · 2010-10-16 02:13 AFAIK TCheckGroup uses TStrings to describe its items, so Add method would normally add new checkbox in the last. Maybe you can use Insert method that accept index parameter. ---------------------------------------------------------------------- sfeinst · 2010-10-16 13:47 Thanks.  But, I was not doing this programmatically.  Just dragging the item to the group box.  I just thought there would be a way to arrange the items visually.  I did look at the items property, but it was empty. I did work around it by removing the existing, adding the new one and putting the old ones back in.  Just seemed like more steps than should be needed. ---------------------------------------------------------------------- Leledumbo · 2010-10-18 02:52 QuoteBut, I was not doing this programmatically.  Just dragging the item to the group box.Are you using TGroupBox filled TCheckBox or a TCheckGroup? If the latter, you should use Items property. Don't drag any TCheckBox there. ---------------------------------------------------------------------- sfeinst · 2010-10-18 15:02 Quote from: Leledumbo on October 18, 2010, 04:52:19 amAre you using TGroupBox filled TCheckBox or a TCheckGroup? If the latter, you should use Items property. Don't drag any TCheckBox there. I'm using TCheckGroup.  So that's obviously my problem.   I'm using it incorrectly.  Thanks.