Subject | How to access embedded TIB_CtrlGrid controls? |
---|---|
Author | mmenaz |
Post date | 2001-12-05T11:36:41Z |
I change CtrlGrid.RowCount a runtime, and want to reposition the controls to a vertical centred position.
But ControlCount returns 1 event there are more controls inside, and Controls[i].Name does not show controls name.
Seems that I'm not accessing embedded controls at all.
How can I do what I want?
Thanks
Marco Menardi
the following code does not work:
for i := 0 to cgrMovConRighe.ControlCount - 1 do
cgrMovConRighe.Controls[i].Top := ((cgrMovConRighe.Height - cgrMovConRighe.Controls[i].Height) div 2);
But ControlCount returns 1 event there are more controls inside, and Controls[i].Name does not show controls name.
Seems that I'm not accessing embedded controls at all.
How can I do what I want?
Thanks
Marco Menardi
the following code does not work:
for i := 0 to cgrMovConRighe.ControlCount - 1 do
cgrMovConRighe.Controls[i].Top := ((cgrMovConRighe.Height - cgrMovConRighe.Controls[i].Height) div 2);