Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.12.09;
Скачать: 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 вся ветка

Текущий архив: 2002.12.09;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.028 c
7-28311
NOE
2002-10-04 18:09
2002.12.09
Service


1-28105
СлБ
2002-11-27 16:37
2002.12.09
Редактор свойств


6-28178
TsaturSoft
2002-10-14 22:36
2002.12.09
Hyper Terminal


1-27989
Peroon
2002-11-27 01:55
2002.12.09
delete(var S:String; Index: Integer; Count: Integer);


1-28062
skirdov
2002-11-27 23:49
2002.12.09
Редактирование данных в Edit, Combobox, StringGrid и пр.