Вниз
Скачать: 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
14-28239
SPeller
2002-11-16 13:23
2002.12.09
О форуме... по WinApi


8-28153
VID
2002-06-18 23:59
2002.12.09
Одновременное воспроизведение нескольких WAV-файлов


1-27919
Mosh
2002-11-28 15:58
2002.12.09
Как внедрить графические файлы в иксишник??


14-28252
Dbrf
2002-11-18 13:46
2002.12.09
Документация по RXLibrary


14-28298
TTCustomDelphiMaster
2002-11-19 21:03
2002.12.09
Кто нибудь играл на Нью-Йоркской фондовой бирже?




   Наверх