关于事件的响应
1、d6中我要响应form的size的变化,使得控件dbgrid1的尺寸也变化,如何响应?
2、我写一个form上面有一个dbgrid,能不能给dbgrid加个autosize的属性?我只有
这样写
type Tmyform=class(Tform)
dbgrid1:DBgrid;
public
constructor Create(Owner:TComponent);override;
......
imm.....
constructor TmyForm.Create(Owner:TComponent);
begin
inherited create(owner);
dbgrid1.width:=width-8;
dbgrid1.height:=height-48;
end;
痛苦!!!而且不会随着myform变化而变化。