提交 5fbbc66a 编写于 作者: C cz_012273

修改memo默认高度,初始化进入后粘贴内容可调节。

上级 fe1eaa4f
inherited Form1_LgXhdpiPh: TForm1_LgXhdpiPh inherited Form1_LgXhdpiPh: TForm1_LgXhdpiPh
ClientHeight = 720 ClientHeight = 720
ClientWidth = 450 ClientWidth = 450
FormFactor.Height = 720
OnShow = Formshow OnShow = Formshow
DesignerMasterStyle = 3 DesignerMasterStyle = 3
inherited Image1: TImage inherited Image1: TImage
......
...@@ -249,8 +249,8 @@ begin ...@@ -249,8 +249,8 @@ begin
end end
else else
begin begin
Memo1.Lines.clear;
Memo1.height := Form1.height - 226; // 将meno控件恢复到默认高度 Memo1.height := Form1.height - 226; // 将meno控件恢复到默认高度
Memo1.Lines.clear;
end; end;
FWantExit := True; FWantExit := True;
...@@ -262,6 +262,7 @@ begin ...@@ -262,6 +262,7 @@ begin
SetFileName(sUntitled); SetFileName(sUntitled);
Label1.text := '当前文件:' + sUntitled + '.txt'; Label1.text := '当前文件:' + sUntitled + '.txt';
Memo1.height := 436;
end; end;
...@@ -274,7 +275,7 @@ begin ...@@ -274,7 +275,7 @@ begin
i := Memo1.selstart; i := Memo1.selstart;
// showmessage(inttostr(i)); // showmessage(inttostr(i));
if (i > 0) and (Memo1.height > 470) then if (i>0) and (Memo1.height > 430) then
begin begin
Memo1.height := 383; Memo1.height := 383;
Memo1.selstart := i; Memo1.selstart := i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册