Board index » delphi » Can't create an array of TPanel
Carlos I. Molina
![]() Delphi Developer |
Wed, 20 Feb 2002 03:00:00 GMT
Can't create an array of TPanel
The following code should create a set of panels with a TCheckBox inside.
procedure TfrmMain.FormShow(Sender: TObject); begin aChk[iCt] := TCheckBox.Create(aPnl[iCt]); The objects above are declared at the public section of the form as it aPnl: array[0..9] of TPanel; pnlT is a TPanel witch I use as a model for the Panels of the array. It just doesn't work ! The panels seem to be created, but I can't see them Thanks in advance, Carlos I. Molina |