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 ?
Author: Herve Villance
Date: Tue, 31 Mar 1998 00:00
Date: Tue, 31 Mar 1998 00:00
18 lines
1003 bytes
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 ?
Author: Adrian Pickering
Date: Wed, 01 Apr 1998 00:00
Date: Wed, 01 Apr 1998 00:00
28 lines
1184 bytes
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