解决方案 »
- 求教,代码执行到adoquery1.execsql的时候报错,请教原因
- 求救,多个客户端程序可以同时发送文件到服务器端,服务端程序自动接收文件并保存。
- Image动态读bmp正常,而动态读jpg就出错!
- 生成可视控件的问题?
- 高分求救!!(关于一个分组报表),不过可以再开贴加分!!
- 局域网内数据访问
- 关于API的
- 急得很!在表中建一个loopup字段,就出错提示:project kh.exe raised exception class eoleeXception with message '发生为知错误.'.
- 关于OLEcontainer
- 请问如何实现以下对文件的操作
- 请教一个delphi中RegisterClass的问题
- 帮我看个程序写的对不?
unit Unit15;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGroupBox, StdCtrls, Unit16;type
TForm15 = class(TForm)
btn1: TButton;
cxgrpbx1: TcxGroupBox;
procedure btn1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
txtform : Ttxtform;
public
{ Public declarations }
end;var
Form15: TForm15;implementation{$R *.dfm}procedure TForm15.btn1Click(Sender: TObject);
begin
txtform.mmo1.Text:= ('dsads')
end;procedure TForm15.FormCreate(Sender: TObject);
begin
txtform:= Ttxtform.Create(cxgrpbx1,self);
txtform.BorderStyle := bsNone;
txtform.WindowState := wsMaximized;
txtform.Parent := cxgrpbx1;
txtform.Show;
end;end.
被调用单元
unit Unit16;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
Ttxtform = class(TForm)
mmo1: TMemo;
btn1: TButton;
procedure btn1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
FOwnerForm : TForm;
public
{ Public declarations }
constructor Create(AOwner: TComponent; OwnerForm: TForm ); reintroduce;//声明调用函数
end;var
txtform: Ttxtform;implementation{$R *.dfm}procedure Ttxtform.btn1Click(Sender: TObject);
begin
mmo1.Text:= 'ff' ;
end;constructor Ttxtform.Create(AOwner: TComponent; OwnerForm: TForm);
begin
inherited Create(Aowner);
FOwnerForm := OwnerForm;
// ComboBox1.Items := Screen.Fonts;
// ComboBox1.SelText := memotxt.Font.Name;
end;procedure Ttxtform.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action := caFree
end;end.