Главная страница
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.014 c
6-28186
AlexMain
2002-10-10 21:56
2002.12.09
Как положить письмо сразу на POP3 без SMTP?


4-28329
Алексей Ким
2002-10-23 18:05
2002.12.09
on top


4-28337
Демонов Е.В.
2002-10-23 11:20
2002.12.09
PopupMenu для Edit


14-28231
copyr25
2002-11-16 14:59
2002.12.09
В Исландию! Поздравьте меня!


14-28271
Masterlomaster
2002-11-19 07:03
2002.12.09
ПОМОГИТЕ ПЛИЗ,,,,,,,,,,,,,,, ЧЁРТ ЧЁ ДЕЛАТЬ!!!!!!!!!!!! ПОМОГИТЕ!