优化设计器部分窗口
This commit is contained in:
parent
5a31db348a
commit
60749c0d93
|
|
@ -20,11 +20,12 @@ type TProjectManagerForm = class(TVCForm) //
|
||||||
WsPopUp := true;
|
WsPopUp := true;
|
||||||
WsSysMenu := true;
|
WsSysMenu := true;
|
||||||
rc := _wapi.GetScreenRect();
|
rc := _wapi.GetScreenRect();
|
||||||
l :=(rc[2]-rc[0])/2-280;
|
//l :=(rc[2]-rc[0])/2-280;
|
||||||
t :=(rc[3]-rc[1])/2-230;
|
//t :=(rc[3]-rc[1])/2-230;
|
||||||
SetBoundsRect(array(l,t,480+l,300+t));
|
//SetBoundsRect(array(l,t,480+l,300+t));
|
||||||
|
SetBoundsRect(array(100,100,700,500));
|
||||||
FList := new TProgValueList(self);
|
FList := new TProgValueList(self);
|
||||||
FList.Border := false;
|
FList.Border := true;
|
||||||
d := GetAllProjects();
|
d := GetAllProjects();
|
||||||
p := array();
|
p := array();
|
||||||
for i,v in d do p[i]:= array("caption":v["name"],"value":v["file"]);
|
for i,v in d do p[i]:= array("caption":v["name"],"value":v["file"]);
|
||||||
|
|
@ -40,10 +41,10 @@ type TProjectManagerForm = class(TVCForm) //
|
||||||
FList.OnDblClick := thisfunction(OpenSelectedObject);
|
FList.OnDblClick := thisfunction(OpenSelectedObject);
|
||||||
FDelBtn := new TBtn(self);
|
FDelBtn := new TBtn(self);
|
||||||
FOpenBtn := new TBtn(self);
|
FOpenBtn := new TBtn(self);
|
||||||
FDelBtn.caption := "ÒÆ³ý(D)";
|
FDelBtn.caption := "ÒÆ³ý";
|
||||||
FOpenBtn.height := 28;
|
FOpenBtn.height := 28;
|
||||||
FDelBtn.height := 28;
|
FDelBtn.height := 28;
|
||||||
FOpenBtn.caption := "´ò¿ª(O)";
|
FOpenBtn.caption := "´ò¿ª";
|
||||||
FDelBtn.parent := self;
|
FDelBtn.parent := self;
|
||||||
FOpenBtn.parent := self;
|
FOpenBtn.parent := self;
|
||||||
FDelBtn.OnClick := function(o,e)
|
FDelBtn.OnClick := function(o,e)
|
||||||
|
|
@ -341,7 +342,7 @@ type TProjectView = class(TVCForm) //
|
||||||
rc := _wapi.GetScreenRect();
|
rc := _wapi.GetScreenRect();
|
||||||
left := 20;
|
left := 20;
|
||||||
top := 150;
|
top := 150;
|
||||||
width := 300; //350
|
width := 360; //350
|
||||||
height := max(400,rc[3]-200);
|
height := max(400,rc[3]-200);
|
||||||
FInput := new TNameInput(self);
|
FInput := new TNameInput(self);
|
||||||
finheritedinput := new tfm_inheritedwnd(self);
|
finheritedinput := new tfm_inheritedwnd(self);
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ type TVclDesigner = class(tvcform)
|
||||||
function OpenProjectFromtpj(); //¹¤³ÌÑ¡Ôñ
|
function OpenProjectFromtpj(); //¹¤³ÌÑ¡Ôñ
|
||||||
begin
|
begin
|
||||||
SetWndPostWithMouse(FProjectsManager);
|
SetWndPostWithMouse(FProjectsManager);
|
||||||
|
//center_popup_wnd(FProjectsManager,true);
|
||||||
FProjectsManager.Show();
|
FProjectsManager.Show();
|
||||||
return ;
|
return ;
|
||||||
end
|
end
|
||||||
|
|
@ -1494,10 +1495,11 @@ type TVclDesigner = class(tvcform)
|
||||||
FFunctionSelecter.additem(vi);
|
FFunctionSelecter.additem(vi);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function create(AOwner);
|
function create(AOwner);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
ParentFont := false;
|
||||||
|
Font := array("width":10,"height":20);
|
||||||
top := 10;
|
top := 10;
|
||||||
left := 10;
|
left := 10;
|
||||||
rect := _wapi.GetScreenRect();
|
rect := _wapi.GetScreenRect();
|
||||||
|
|
@ -1713,7 +1715,7 @@ type TVclDesigner = class(tvcform)
|
||||||
project.Onclose := thisfunction(spectorclose);
|
project.Onclose := thisfunction(spectorclose);
|
||||||
project.WsPopUp := true;
|
project.WsPopUp := true;
|
||||||
project.Visible := false;
|
project.Visible := false;
|
||||||
project.Width := 300;//
|
project.Width := 345;//
|
||||||
project.height := 800;
|
project.height := 800;
|
||||||
project.WsCaption := true;
|
project.WsCaption := true;
|
||||||
project.WsSysmenu := true;
|
project.WsSysmenu := true;
|
||||||
|
|
@ -2145,7 +2147,7 @@ type TDesignertoolbars = class(TPageControl) //
|
||||||
flg := true;
|
flg := true;
|
||||||
for i,sbi in sb do
|
for i,sbi in sb do
|
||||||
begin
|
begin
|
||||||
if sbi.ExecuteCommand("getbtncount")<20 then
|
if sbi.ExecuteCommand("getbtncount")<21 then
|
||||||
begin
|
begin
|
||||||
flg := false;
|
flg := false;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1347,21 +1347,17 @@ type tg_axes = class(tg_base) //
|
||||||
fx_label := lbl;
|
fx_label := lbl;
|
||||||
axi.tics_direction := tgc_bottom;
|
axi.tics_direction := tgc_bottom;
|
||||||
axi.ytics_coord := array("x",0,0);
|
axi.ytics_coord := array("x",0,0);
|
||||||
axi.tag := "+x+";
|
|
||||||
end
|
end
|
||||||
1:
|
1:
|
||||||
begin
|
begin
|
||||||
fy_label := lbl;
|
fy_label := lbl;
|
||||||
axi.tics_direction := tgc_left;
|
axi.tics_direction := tgc_left;
|
||||||
axi.ytics_coord := array(0,"y",0);
|
axi.ytics_coord := array(0,"y",0);
|
||||||
axi.tag := "+y+";
|
|
||||||
end
|
end
|
||||||
2:
|
2:
|
||||||
begin
|
begin
|
||||||
fz_label := lbl;
|
fz_label := lbl;
|
||||||
//axi.visible := false;
|
|
||||||
axi.ytics_coord := array(0,0,"z");
|
axi.ytics_coord := array(0,0,"z");
|
||||||
axi.tag := "+z+";
|
|
||||||
end
|
end
|
||||||
end ;
|
end ;
|
||||||
axi.axis_label := lbl;
|
axi.axis_label := lbl;
|
||||||
|
|
|
||||||
BIN
tsleditor.exe
BIN
tsleditor.exe
Binary file not shown.
BIN
tslvcltool.exe
BIN
tslvcltool.exe
Binary file not shown.
Loading…
Reference in New Issue