设计器

更新设计器
This commit is contained in:
JianjunLiu
2022-11-15 16:29:39 +08:00
parent 9fdecfd8a4
commit e45feaf84e
3 changed files with 203 additions and 15 deletions
+9 -8
View File
@@ -1685,6 +1685,13 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
return array(cy,cx+(ci?(0):1));
end
private //属性设置函数
function getclipboard();//获得clipbord
begin
if not FCopyer then
begin
FCopyer := new TcustomClipBoard(self);
end
end
function memtextchanged(p);
begin
if not(fundoing or fredoing) then
@@ -1819,10 +1826,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
r := GetSelText();
if r then
begin
if not FCopyer then
begin
FCopyer := new TcustomClipBoard(self);
end
getclipboard();
FCopyer.text := r;
return true;
end
@@ -1830,10 +1834,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
function PasteFromClipboard();
begin
//if ReadOnly then return ;
if not FCopyer then
begin
FCopyer := new TcustomClipBoard(self);
end
getclipboard();
//s := FCopyer.Text;
//echo length(s),"\r\n";
if SelAvail then SelText := FCopyer.Text;