Вниз
Скачать: CL | DM;

Компоненты во время работы   Найти похожие ветки 

← →
stas_a   (2002-11-28 13:09) [0]

Здрасть есть код

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
compon:array[1..2] of tComponent;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
compon[1]:=Tmemo.Create(Self);
With compon[1] do
begin
top := 200;
Left := 50;
Width:=200;
Height:=200;
Text := "proverka";
end;
end;

end.

Форма с кнопкой.
При нажатии у меня форма становится 200 на 200 сверху 200 слева 50 а Memo не создаётся вообще помогите плииз.


← →
MBo ©   (2002-11-28 13:12) [1]

нужно еще
1) назначить Parent
2) with (compon[1] as TMemo) do ...


← →
stas_a   (2002-11-28 13:14) [2]

Спасибо буду пробовать.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
1-27932
lscomp
2002-11-28 02:08
2002.12.09
Пустая строка


14-28202
dinAlt
2002-11-16 12:33
2002.12.09
Открылся новый сайт!!!


3-27832
UniDeMoN
2002-11-17 04:33
2002.12.09
создание собственной базы данных


14-28247
Mist
2002-11-18 12:37
2002.12.09
Reset


4-28366
Sender
2002-10-28 19:50
2002.12.09
Буфер обмена




   Наверх