大家好:
首先谢谢大家刚才的解答。我明白了一半可能是我刚才没有说清楚吧!
我的意思是这样的:我是说使窗体上的一个控件,例如“memo1”控件,我想让
“memo1”控件的大小和位置在窗体的大小改变时,与窗体大小相比“memo1”无论在大小还是在位置上都与设计是成比例的变化。请问在什么事件中利用窗体或控件的什么属性来写代码。请各位老大给出一个具体的例子好吗?因为我是个新手。
谢谢大家了!我正急切的盼望着你们解答。
首先谢谢大家刚才的解答。我明白了一半可能是我刚才没有说清楚吧!
我的意思是这样的:我是说使窗体上的一个控件,例如“memo1”控件,我想让
“memo1”控件的大小和位置在窗体的大小改变时,与窗体大小相比“memo1”无论在大小还是在位置上都与设计是成比例的变化。请问在什么事件中利用窗体或控件的什么属性来写代码。请各位老大给出一个具体的例子好吗?因为我是个新手。
谢谢大家了!我正急切的盼望着你们解答。
解决方案 »
- 怎样判断时间相差1分钟
- 帮帮我啊,indy9发html邮件有附件(网页的图片)的问题
- PageControl 中TabPosition 的值设为:tpLeft,标签都放到左边了,可是字体却仍是垂直显示(在线等)
- 怎样对填充DBGrid的同时对其中的数据进行统计呢?
- 哈尔滨的DELPHI程序员或爱好者请进!
- 有关Tuxedo......高手请进
- 急急急各位,为什么编译完的可执行文件拿到没有delphi的机器上就不能运行了???????
- 问一个与程序不太有关的问题。的确需要
- dbgrid如何清除内容!THANKYOU!!
- 何何识别一个数据的类型(数字?日期?文本?)
- 我想使用findfirstfile这个API,但其中这个结构不懂如何转换成DELPHI的格式,帮帮忙,谢谢
- 如何配置DCOM,使客户端程序运行???
Form1: TForm1;
LastHeight:integer;
LastWidth:integer;implementation{$R *.DFM}procedure TForm1.FormCreate(Sender: TObject);
begin
LastHeight:=Height;
LastWidth:=Width;
end;procedure TForm1.FormResize(Sender: TObject);
begin
scaleby(Height,LastHeight); //函数
LastHeight:=Height;
LastWidth:=Width;
end;
type TAnchorKind = (akTop, akLeft, akRight, akBottom);DescriptionTAnchors is a set of TAnchorKind values. TAnchorKind can have one or more of the following values:Value MeaningakTop The control抯 position is fixed with respect to the top edge of its parent.
akLeft The control抯 position is fixed with respect to the left edge of its parent.
akRight The control抯 position is fixed with respect to the right edge of its parent.
akBottom The control抯 position is fixed with respect to the bottom edge of its parent.