parent
c484ac2ea9
commit
3ceedb95cb
|
|
@ -2527,7 +2527,7 @@ type tinheritedimput = class(TVCForm)
|
||||||
object label3:tlabel
|
object label3:tlabel
|
||||||
left=6
|
left=6
|
||||||
top=9
|
top=9
|
||||||
caption="만잚눗왯"
|
caption="可继承父类:"
|
||||||
end
|
end
|
||||||
object listbox1:tlistbox
|
object listbox1:tlistbox
|
||||||
caption="listbox1"
|
caption="listbox1"
|
||||||
|
|
@ -2536,6 +2536,7 @@ type tinheritedimput = class(TVCForm)
|
||||||
top=40
|
top=40
|
||||||
visible=true
|
visible=true
|
||||||
width=274
|
width=274
|
||||||
|
onselectionchange=listselchanged
|
||||||
end
|
end
|
||||||
object btn1:tbtn
|
object btn1:tbtn
|
||||||
caption="È¡Ïû"
|
caption="È¡Ïû"
|
||||||
|
|
@ -2554,7 +2555,7 @@ type tinheritedimput = class(TVCForm)
|
||||||
top=225
|
top=225
|
||||||
width=53
|
width=53
|
||||||
height=24
|
height=24
|
||||||
caption="츰냔"
|
caption="名称:"
|
||||||
end
|
end
|
||||||
object edit1:tedit
|
object edit1:tedit
|
||||||
caption="edit1"
|
caption="edit1"
|
||||||
|
|
@ -2585,23 +2586,30 @@ type tinheritedimput = class(TVCForm)
|
||||||
e.skip := true;
|
e.skip := true;
|
||||||
o.Endmodal(0);
|
o.Endmodal(0);
|
||||||
end
|
end
|
||||||
|
function listselchanged(o,e);
|
||||||
|
begin
|
||||||
|
idx := o.getCurrentSelection();
|
||||||
|
if idx>=0 then
|
||||||
|
begin
|
||||||
|
edit1.text := o.getItemText(idx)+"1";
|
||||||
|
end
|
||||||
|
end
|
||||||
function getinfo();
|
function getinfo();
|
||||||
begin
|
begin
|
||||||
return array(fnds[listbox1.getCurrentSelection()],edit1.text);
|
return array(fnds[listbox1.getCurrentSelection()],edit1.text);
|
||||||
end
|
end
|
||||||
function setinfo();
|
function setinfo();
|
||||||
begin
|
begin
|
||||||
|
ss := array();
|
||||||
if parent then
|
if parent then
|
||||||
begin
|
begin
|
||||||
tr := parent.tree;
|
tr := parent.tree;
|
||||||
fnds := array();
|
fnds := array();
|
||||||
tr.GetNodesBytype(fnds,array("form","panel"));
|
tr.GetNodesBytype(fnds,array("form","panel"));
|
||||||
ss := array();
|
|
||||||
for i,v in fnds do
|
for i,v in fnds do
|
||||||
begin
|
begin
|
||||||
ss[i] := v.Fname;
|
ss[i] := v.Fname;
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
listbox1.Items := ss;
|
listbox1.Items := ss;
|
||||||
edit1.ExecuteCommand("ecselall");
|
edit1.ExecuteCommand("ecselall");
|
||||||
|
|
|
||||||
|
|
@ -507,7 +507,14 @@ type TDComponent = class()
|
||||||
obj.name := v;
|
obj.name := v;
|
||||||
if v=(obj.name) then
|
if v=(obj.name) then
|
||||||
begin
|
begin
|
||||||
if TreeNode then TreeNode.caption := v+":"+cn;
|
if TreeNode then
|
||||||
|
begin
|
||||||
|
if inheritedparent then
|
||||||
|
begin
|
||||||
|
pcn := "("+inheritedparent+")";
|
||||||
|
end else pcn := "";
|
||||||
|
TreeNode.caption := v+":"+cn+pcn;
|
||||||
|
end
|
||||||
if ifstring(odn) and v then
|
if ifstring(odn) and v then
|
||||||
begin
|
begin
|
||||||
ds := FTreeNode.owner.Designer;
|
ds := FTreeNode.owner.Designer;
|
||||||
|
|
|
||||||
|
|
@ -3327,7 +3327,8 @@ type TPairSplitter=class(tcustomcontrol) //
|
||||||
for i := -4 to 4 do
|
for i := -4 to 4 do
|
||||||
begin
|
begin
|
||||||
y1 := y+i*4;
|
y1 := y+i*4;
|
||||||
dc.SetPixel(array(x,y1),0);
|
if y1>rc[1] and y1<rc[3] then
|
||||||
|
dc.SetPixel(array(x,y1),0);
|
||||||
end
|
end
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
|
|
@ -3336,7 +3337,8 @@ type TPairSplitter=class(tcustomcontrol) //
|
||||||
for i := -4 to 4 do
|
for i := -4 to 4 do
|
||||||
begin
|
begin
|
||||||
x1 := x+i*4;
|
x1 := x+i*4;
|
||||||
dc.SetPixel(array(x1,y),0);
|
if x1>rc[0] and x1<rc[2] then
|
||||||
|
dc.SetPixel(array(x1,y),0);
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue