parent
f5c545746f
commit
3a0479746d
|
|
@ -110,6 +110,7 @@ type TVclDesigner = class(tvcform)
|
||||||
if not tr then return ;
|
if not tr then return ;
|
||||||
it := tr.RootItem;
|
it := tr.RootItem;
|
||||||
node := (it.items)[0];
|
node := (it.items)[0];
|
||||||
|
ifnit := true;
|
||||||
end
|
end
|
||||||
if not ifarray(itemnames) then itemnames := array();
|
if not ifarray(itemnames) then itemnames := array();
|
||||||
if not ifarray(lib) then lib := array();
|
if not ifarray(lib) then lib := array();
|
||||||
|
|
@ -136,8 +137,8 @@ type TVclDesigner = class(tvcform)
|
||||||
ihp := "("+tc.inheritedparent+")";
|
ihp := "("+tc.inheritedparent+")";
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
r+= oorinh + tc.name +":"+tc.dclassname+ihp+"\r\n";
|
r+= oorinh + tcname +":"+tcclassname+ihp+"\r\n";
|
||||||
itemnames[length(itemnames)] := array(tc.name,tc.dclassname);
|
itemnames[length(itemnames)] := array(tcname,tcclassname);
|
||||||
cr := tc.GetChangedPublish();
|
cr := tc.GetChangedPublish();
|
||||||
for i,v in cr do
|
for i,v in cr do
|
||||||
begin
|
begin
|
||||||
|
|
@ -147,7 +148,7 @@ type TVclDesigner = class(tvcform)
|
||||||
end
|
end
|
||||||
for i := 0 to node.ItemCount-1 do
|
for i := 0 to node.ItemCount-1 do
|
||||||
begin
|
begin
|
||||||
r += tablelines( call(thisfunction,lib,(node.items)[i],itemnames),tab);
|
r += tablelines( TreeNode2tfmsub(lib,(node.items)[i],itemnames),tab);
|
||||||
end
|
end
|
||||||
r += "end";
|
r += "end";
|
||||||
end
|
end
|
||||||
|
|
@ -827,11 +828,12 @@ type TVclDesigner = class(tvcform)
|
||||||
FComponentCreater := cct;
|
FComponentCreater := cct;
|
||||||
end
|
end
|
||||||
|
|
||||||
function CloseShowForm(); //主窗口关闭
|
function CloseShowForm(o,e); //主窗口关闭
|
||||||
begin
|
begin
|
||||||
{**
|
{**
|
||||||
@explan(说明)关闭当前工程窗口%%
|
@explan(说明)关闭当前工程窗口%%
|
||||||
**}
|
**}
|
||||||
|
|
||||||
FProjectManager.CloseCurrentEdit(nil,true);
|
FProjectManager.CloseCurrentEdit(nil,true);
|
||||||
end
|
end
|
||||||
public //设计器中绑定事件
|
public //设计器中绑定事件
|
||||||
|
|
@ -1042,7 +1044,6 @@ type TVclDesigner = class(tvcform)
|
||||||
it := new TDPanelForm();
|
it := new TDPanelForm();
|
||||||
end else return ;
|
end else return ;
|
||||||
it.dclassname(d["class"]);
|
it.dclassname(d["class"]);
|
||||||
|
|
||||||
it.Imgs := fdimagelist.GetImageId("tdcreateform");
|
it.Imgs := fdimagelist.GetImageId("tdcreateform");
|
||||||
end
|
end
|
||||||
comp := it.ComponentCreater(node,wr);
|
comp := it.ComponentCreater(node,wr);
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,9 @@ type TDComponent = class()
|
||||||
static fdcomponentobjects;
|
static fdcomponentobjects;
|
||||||
protected
|
protected
|
||||||
fiscontainerdcmp;
|
fiscontainerdcmp;
|
||||||
private //基础数据
|
|
||||||
fcomponentclassname;
|
fcomponentclassname;
|
||||||
|
private //基础数据
|
||||||
|
|
||||||
feventnametable; //消息处理表
|
feventnametable; //消息处理表
|
||||||
FTreeNode; //树结点
|
FTreeNode; //树结点
|
||||||
FCwnd; //对应控件
|
FCwnd; //对应控件
|
||||||
|
|
@ -407,6 +408,7 @@ type TDComponent = class()
|
||||||
tn.SelImgId := Imgs;
|
tn.SelImgId := Imgs;
|
||||||
end
|
end
|
||||||
o := createobject({ClassObject()}self(true).classinfo(1),owner);
|
o := createobject({ClassObject()}self(true).classinfo(1),owner);
|
||||||
|
if ifnil(o.dclassname()) then o.dclassname(self(true).dclassname());
|
||||||
o.imgs := imgs;
|
o.imgs := imgs;
|
||||||
if not o then return 0;
|
if not o then return 0;
|
||||||
o.TreeNode := tn;
|
o.TreeNode := tn;
|
||||||
|
|
@ -865,9 +867,8 @@ type TDForm = class(TDComponent)
|
||||||
{**
|
{**
|
||||||
@explan(说明) 主窗口 %%
|
@explan(说明) 主窗口 %%
|
||||||
**}
|
**}
|
||||||
|
|
||||||
private
|
private
|
||||||
static FClassName;
|
|
||||||
static FParser;
|
|
||||||
function closecurrentform(o,e); //关闭当前窗口
|
function closecurrentform(o,e); //关闭当前窗口
|
||||||
begin
|
begin
|
||||||
cp := o.Component;
|
cp := o.Component;
|
||||||
|
|
@ -941,10 +942,9 @@ type TDForm = class(TDComponent)
|
||||||
begin
|
begin
|
||||||
if ifstring(v) and v then
|
if ifstring(v) and v then
|
||||||
begin
|
begin
|
||||||
FClassName := v;
|
fcomponentclassname := v;
|
||||||
end
|
end
|
||||||
if not FClassName then return "tdcreateform";
|
return fcomponentclassname;
|
||||||
return FClassName;
|
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue