Update udesignerproject.tsf
优化设计器
This commit is contained in:
@@ -2554,7 +2554,7 @@ type tinheritedimput = class(TVCForm)
|
|||||||
top=40
|
top=40
|
||||||
visible=true
|
visible=true
|
||||||
width=274
|
width=274
|
||||||
onselectionchange=listselchanged
|
onselchanged=listselchanged
|
||||||
end
|
end
|
||||||
object btn1:tbtn
|
object btn1:tbtn
|
||||||
caption="取消"
|
caption="取消"
|
||||||
@@ -2609,7 +2609,16 @@ type tinheritedimput = class(TVCForm)
|
|||||||
idx := o.getCurrentSelection();
|
idx := o.getCurrentSelection();
|
||||||
if idx>=0 then
|
if idx>=0 then
|
||||||
begin
|
begin
|
||||||
edit1.text := o.getItemText(idx)+"1";
|
|
||||||
|
s := o.getItemText(idx);
|
||||||
|
n := 1;
|
||||||
|
while true do
|
||||||
|
begin
|
||||||
|
ns := s+inttostr(n);
|
||||||
|
if not(fns[ns]) then break;
|
||||||
|
n++;
|
||||||
|
end
|
||||||
|
edit1.text := ns;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function getinfo();
|
function getinfo();
|
||||||
@@ -2619,6 +2628,7 @@ type tinheritedimput = class(TVCForm)
|
|||||||
function setinfo();
|
function setinfo();
|
||||||
begin
|
begin
|
||||||
ss := array();
|
ss := array();
|
||||||
|
fns := array();
|
||||||
if parent then
|
if parent then
|
||||||
begin
|
begin
|
||||||
tr := parent.tree;
|
tr := parent.tree;
|
||||||
@@ -2626,7 +2636,9 @@ type tinheritedimput = class(TVCForm)
|
|||||||
tr.GetNodesBytype(fnds,array("form","panel"));
|
tr.GetNodesBytype(fnds,array("form","panel"));
|
||||||
for i,v in fnds do
|
for i,v in fnds do
|
||||||
begin
|
begin
|
||||||
ss[i] := v.Fname;
|
s := v.Fname;
|
||||||
|
ss[i] := s;
|
||||||
|
fns[s] := true;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
listbox1.Items := ss;
|
listbox1.Items := ss;
|
||||||
@@ -2634,6 +2646,7 @@ type tinheritedimput = class(TVCForm)
|
|||||||
end
|
end
|
||||||
public //成员变量
|
public //成员变量
|
||||||
fnds;
|
fnds;
|
||||||
|
fns;
|
||||||
label3;
|
label3;
|
||||||
listbox1;
|
listbox1;
|
||||||
btn1;
|
btn1;
|
||||||
|
|||||||
Reference in New Issue
Block a user