🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.lang.borland-delphi.
2 messages
2 total messages Started by Herve Villance Tue, 31 Mar 1998 00:00
Dynamic array of TLabels ?
#1
Author: Herve Villance
Date: Tue, 31 Mar 1998 00:00
18 lines
1003 bytes
Hello there,

In Delphi 3.02, I try to dynamic create TLabels on a form.
What I want to do it to make it automatically through an array of TLabels.

How can I do it ?

Thank you for your help.

------------------------
ArianeSoft s.a.
Herve Villance

e-mail: hvil@arianesoft.com
ICQ: 3596179
Company Web Site: http://arianesoft.com
Personal Home Page: http://www.treetop.lu/herve
Re: Dynamic array of TLabels ?
#2
Author: Adrian Pickering
Date: Wed, 01 Apr 1998 00:00
28 lines
1184 bytes
Herve Villance wrote:

> Hello there,
>
> In Delphi 3.02, I try to dynamic create TLabels on a form.
> What I want to do it to make it automatically through an array of TLabels.

Do you mean on the lines of

Var
   Index : Integer;
   MyArray : Array [1..ArraySize] Of TLabel;

Begin

   For Index := 1 to ArraySize Do
   Begin
      MyArray [Index] := TLabel.Create (Form1);
      With MyArray [Index] Do
      Begin
         Parent := Form1;
         Top := MyfontSize * Index;
         Show;
      End;
   End;

End;
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads