parent
c816e4d543
commit
c484ac2ea9
|
|
@ -946,7 +946,7 @@ type TDForm = class(TDComponent)
|
||||||
|
|
||||||
function WndClass();override;
|
function WndClass();override;
|
||||||
begin
|
begin
|
||||||
return class(tvcform);
|
return class(tdcreateform);
|
||||||
//return class(TDCreateForm);
|
//return class(TDCreateForm);
|
||||||
end
|
end
|
||||||
function create(AOwner);override;
|
function create(AOwner);override;
|
||||||
|
|
@ -976,7 +976,7 @@ type TDPanelForm = class(TDForm)
|
||||||
|
|
||||||
function WndClass();override;
|
function WndClass();override;
|
||||||
begin
|
begin
|
||||||
return class(TpanelForm);
|
return class(TDCreatePanel);
|
||||||
//return class(TDCreatePanel);
|
//return class(TDCreatePanel);
|
||||||
end
|
end
|
||||||
function create(AOwner);override;
|
function create(AOwner);override;
|
||||||
|
|
@ -1277,6 +1277,25 @@ type TGraphicsplitterWindow = class(TDVirutalWindow)
|
||||||
//canvas.Font := font;
|
//canvas.Font := font;
|
||||||
//al := BindComp.TextAlign;
|
//al := BindComp.TextAlign;
|
||||||
//BindComp.CanvasDrawAlignText(self.canvas,self.ClientRect,self.caption,al);
|
//BindComp.CanvasDrawAlignText(self.canvas,self.ClientRect,self.caption,al);
|
||||||
|
dc := canvas;
|
||||||
|
r := ClientRect;
|
||||||
|
clr := 0x123232;
|
||||||
|
x := integer(r[0]+(r[2]-r[0])/2);
|
||||||
|
y := integer(r[1]+(r[3]-r[1])/2);
|
||||||
|
sz := 4;
|
||||||
|
sp := 5;
|
||||||
|
for j :=(0 -sz) to sz do
|
||||||
|
begin
|
||||||
|
for i:=(0 -sz) to sz do
|
||||||
|
begin
|
||||||
|
x1 := x+sp*i;
|
||||||
|
y1 := y+sp*j;
|
||||||
|
if x1>r[0] and x1<r[2] and y1>r[1] and y1<r[3] then
|
||||||
|
begin
|
||||||
|
dc.SetPixel(array(x1,y1),clr);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function SetPublish(n,v,pp);override;
|
function SetPublish(n,v,pp);override;
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -349,13 +349,16 @@ public //
|
||||||
function Recycling();override; //»ØÊÕ
|
function Recycling();override; //»ØÊÕ
|
||||||
begin
|
begin
|
||||||
if not FComponentCreated then exit;
|
if not FComponentCreated then exit;
|
||||||
|
dodestroy();
|
||||||
Destroying();
|
Destroying();
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
relnotification("recycling");
|
relnotification(opRecycling);
|
||||||
///////////////////////
|
///////////////////////
|
||||||
DestroyComponents();
|
DestroyComponents();
|
||||||
If FOwner is class(tcomponent)Then FOwner.RemoveComponent(self(true)); //self
|
If FOwner is class(tcomponent)Then FOwner.RemoveComponent(self(true)); //self
|
||||||
inherited;
|
inherited;
|
||||||
|
fondestroy := nil;
|
||||||
|
fonnotification := nil;
|
||||||
end
|
end
|
||||||
function Destroy();virtual;
|
function Destroy();virtual;
|
||||||
begin
|
begin
|
||||||
|
|
@ -658,4 +661,18 @@ public //
|
||||||
property Parent read ComponentGetParent write ComponentSetParent;
|
property Parent read ComponentGetParent write ComponentSetParent;
|
||||||
property asdomain read fasdomain write fasdomain; //Óò½Úµã
|
property asdomain read fasdomain write fasdomain; //Óò½Úµã
|
||||||
property Loader read GetLoader; //¼ÓÔØÆ÷
|
property Loader read GetLoader; //¼ÓÔØÆ÷
|
||||||
|
property ondestroy:eventhandler read fondestroy write fondestroy;
|
||||||
|
property onnotification:eventhandler read fonnotification write fonnotification;
|
||||||
|
private
|
||||||
|
function dodestroy();virtual;
|
||||||
|
begin
|
||||||
|
if fondestroy then
|
||||||
|
begin
|
||||||
|
e := new tuieventbase(0,0,0,0);
|
||||||
|
e.sender := (self(true));
|
||||||
|
CallMessgeFunction(fondestroy,self(true),e);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
fondestroy;
|
||||||
|
fonnotification;
|
||||||
end
|
end
|
||||||
|
|
@ -39,13 +39,17 @@ type tcustomcontrol=class(TWinControl)
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
function Create(AOwner:TComponent);override;
|
function Create(AOwner:TComponent);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
//FCanvas := new tcanvas();
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
includestate(FControlState,csCustomPaint);
|
includestate(FControlState,csCustomPaint);
|
||||||
fhassplitter := 0;
|
fhassplitter := 0;
|
||||||
fsplitterwilldrag := true;
|
fsplitterwilldrag := true;
|
||||||
//FCanvas := new tcanvas();
|
end
|
||||||
end
|
|
||||||
function CreateParams(p);override;
|
function CreateParams(p);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
|
||||||
|
|
@ -359,6 +359,10 @@ type tcustomscrollcontrol = class(TCustomControl)
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
begin
|
begin
|
||||||
FWhileStep := 3;
|
FWhileStep := 3;
|
||||||
|
inherited;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FLocalX := 0;
|
FLocalX := 0;
|
||||||
FLocalY := 0;
|
FLocalY := 0;
|
||||||
|
|
@ -367,7 +371,7 @@ type tcustomscrollcontrol = class(TCustomControl)
|
||||||
FAutoScroll := 0;
|
FAutoScroll := 0;
|
||||||
FSI := new TScrollinfo();
|
FSI := new TScrollinfo();
|
||||||
FSI.cbSize := FSI._size_;
|
FSI.cbSize := FSI._size_;
|
||||||
end
|
end
|
||||||
property AutoScroll read FAutoScroll write SetAutoScroll;
|
property AutoScroll read FAutoScroll write SetAutoScroll;
|
||||||
property ThumbTrack read FThumbTrack write FThumbTrack;
|
property ThumbTrack read FThumbTrack write FThumbTrack;
|
||||||
property WhileStep read FWhileStep write SetWhileStep; //¹ö¶¯²½³¤
|
property WhileStep read FWhileStep write SetWhileStep; //¹ö¶¯²½³¤
|
||||||
|
|
|
||||||
|
|
@ -6,21 +6,38 @@ type tcustomsplitter = class(tgraphiccontrol)
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
Caption := "";
|
Caption := "";
|
||||||
color := 0xEED2BC;
|
color := 0xf0f0f0;//0xEED2BC;
|
||||||
Width := 6;
|
Width := 6;
|
||||||
Height := 100;
|
Height := 100;
|
||||||
end
|
end
|
||||||
function paint();override;
|
function paint();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
r := ClientRect;
|
||||||
|
dc := Canvas;
|
||||||
if Border then
|
if Border then
|
||||||
begin
|
begin
|
||||||
r := ClientRect;
|
|
||||||
dc := Canvas;
|
|
||||||
dc.pen.color := 0;
|
dc.pen.color := 0;
|
||||||
dc.pen.Width := 2;
|
dc.pen.Width := 2;
|
||||||
dc.draw("polygon",array(r[0:1],r[array(2,1)],r[array(2,3)],r[array(0,3)],r[0:1]));
|
dc.draw("polygon",array(r[0:1],r[array(2,1)],r[array(2,3)],r[array(0,3)],r[0:1]));
|
||||||
end
|
end
|
||||||
|
clr := 0x123232;
|
||||||
|
x := integer(r[0]+(r[2]-r[0])/2);
|
||||||
|
y := integer(r[1]+(r[3]-r[1])/2);
|
||||||
|
sz := 4;
|
||||||
|
sp := 5;
|
||||||
|
for j :=(0 -sz) to sz do
|
||||||
|
begin
|
||||||
|
for i:=(0 -sz) to sz do
|
||||||
|
begin
|
||||||
|
x1 := x+sp*i;
|
||||||
|
y1 := y+sp*j;
|
||||||
|
if x1>r[0] and x1<r[2] and y1>r[1] and y1<r[3] then
|
||||||
|
begin
|
||||||
|
dc.SetPixel(array(x1,y1),clr);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function SetAlign(a);override;
|
function SetAlign(a);override;
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -518,7 +518,7 @@ type tapplication=class(tcomponent)
|
||||||
function Notification(a,op);override;
|
function Notification(a,op);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if op="recycling" then
|
if op=opRecycling then
|
||||||
begin
|
begin
|
||||||
if a=Fmainform then
|
if a=Fmainform then
|
||||||
begin
|
begin
|
||||||
|
|
@ -865,10 +865,14 @@ type TScrollingWinControl = class(TCustomScrollControl)
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
ThumbTrack := TRUE;
|
ThumbTrack := TRUE;
|
||||||
end
|
end
|
||||||
function doControlALign();override;
|
function doControlALign();override;
|
||||||
begin
|
begin
|
||||||
if AutoScroll then InitialScroll();
|
if AutoScroll then InitialScroll();
|
||||||
|
|
@ -886,6 +890,10 @@ type TPanel=class(TScrollingWinControl) //
|
||||||
@explan(说明) 面板控件 %%
|
@explan(说明) 面板控件 %%
|
||||||
**}
|
**}
|
||||||
function create(AOwner);override;
|
function create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
caption := "panel";
|
caption := "panel";
|
||||||
|
|
@ -894,7 +902,7 @@ type TPanel=class(TScrollingWinControl) //
|
||||||
AutoScroll := false;
|
AutoScroll := false;
|
||||||
WsDlgModalFrame := true;
|
WsDlgModalFrame := true;
|
||||||
//color := _wapi.GetSysColor(COLOR_MENU);
|
//color := _wapi.GetSysColor(COLOR_MENU);
|
||||||
end
|
end
|
||||||
function CreateParams(p);override;
|
function CreateParams(p);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
@ -913,7 +921,7 @@ type TPanel=class(TScrollingWinControl) //
|
||||||
"popupmenu","visible",
|
"popupmenu","visible",
|
||||||
"height","width","left","top","border",
|
"height","width","left","top","border",
|
||||||
"zorder","color","bkbitmap","parentcolor","parentfont",
|
"zorder","color","bkbitmap","parentcolor","parentfont",
|
||||||
"minwidth","minheight",
|
//"minwidth","minheight",
|
||||||
"wspopup","wsdlgmodalframe","wscaption","wssizebox","wssysmenu",
|
"wspopup","wsdlgmodalframe","wscaption","wssizebox","wssysmenu",
|
||||||
"autoscroll",
|
"autoscroll",
|
||||||
"onmousewheel","onsize","onmove","onmousemove","onpopupmenu",
|
"onmousewheel","onsize","onmove","onmousemove","onpopupmenu",
|
||||||
|
|
@ -1030,7 +1038,7 @@ type TTray=class(TComponent)
|
||||||
{**
|
{**
|
||||||
@explan(说明) 通知消息处理 %%
|
@explan(说明) 通知消息处理 %%
|
||||||
**}
|
**}
|
||||||
if Operation="recycling" then //opRemove
|
if Operation=opRecycling then //opRemove
|
||||||
begin
|
begin
|
||||||
if FPopupMenu=AComponent then
|
if FPopupMenu=AComponent then
|
||||||
begin
|
begin
|
||||||
|
|
@ -1246,6 +1254,10 @@ type TVCForm = class(TScrollingWinControl)
|
||||||
return _wapi.GetSystemMetrics(SM_CYMENU);
|
return _wapi.GetSystemMetrics(SM_CYMENU);
|
||||||
end
|
end
|
||||||
function create(AOwner);override;
|
function create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FFormBorderStyle := bsNone;
|
FFormBorderStyle := bsNone;
|
||||||
|
|
@ -1437,7 +1449,7 @@ type TVCForm = class(TScrollingWinControl)
|
||||||
{**
|
{**
|
||||||
@explan(说明) 通知消息处理 %%
|
@explan(说明) 通知消息处理 %%
|
||||||
**}
|
**}
|
||||||
if Operation="recycling" then //opRemove
|
if Operation=opRecycling then //opRemove
|
||||||
begin
|
begin
|
||||||
if AComponent=FMainMenu then FMainMenu := nil;
|
if AComponent=FMainMenu then FMainMenu := nil;
|
||||||
if FTray=AComponent then
|
if FTray=AComponent then
|
||||||
|
|
@ -1464,7 +1476,8 @@ type TVCForm = class(TScrollingWinControl)
|
||||||
"popupmenu","visible",
|
"popupmenu","visible",
|
||||||
"height","width","left","top",
|
"height","width","left","top",
|
||||||
"color","bkbitmap","parentcolor","parentfont",
|
"color","bkbitmap","parentcolor","parentfont",
|
||||||
"minwidth","minheight","wssizebox","wsdlgmodalframe",
|
//"minwidth","minheight",
|
||||||
|
"wssizebox","wsdlgmodalframe",
|
||||||
"mainmenu","minmaxbox","formicon","tray",
|
"mainmenu","minmaxbox","formicon","tray",
|
||||||
"onsize","onmove","onmousemove",
|
"onsize","onmove","onmousemove",
|
||||||
"onmousedown","onmouseup",
|
"onmousedown","onmouseup",
|
||||||
|
|
@ -1510,6 +1523,10 @@ type TpanelForm=class(tpanel)
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
rc := _wapi.GetScreenRect();
|
rc := _wapi.GetScreenRect();
|
||||||
|
|
@ -1520,7 +1537,7 @@ type TpanelForm=class(tpanel)
|
||||||
FHeight := h;
|
FHeight := h;
|
||||||
FWidth := wd;
|
FWidth := wd;
|
||||||
wspopup := true;
|
wspopup := true;
|
||||||
end
|
end
|
||||||
function Paint();override;
|
function Paint();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
@ -1536,16 +1553,39 @@ type TDCreateForm=class(TVCForm)
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
Loader.LoadFromTfm(self(true));
|
|
||||||
end
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
Loader.LoadFromTfm(self(true));
|
||||||
|
end
|
||||||
|
function publishs();override;
|
||||||
|
begin
|
||||||
|
r := inherited;
|
||||||
|
r[length(r)] := "oncreated";
|
||||||
|
r[length(r)] := "ondestroy";
|
||||||
|
return r;
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
type TDCreatePanel=class(TpanelForm)
|
type TDCreatePanel=class(TpanelForm)
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
Loader.LoadFromTfm(self(true));
|
|
||||||
end
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
Loader.LoadFromTfm(self(true));
|
||||||
|
end
|
||||||
|
function publishs();override;
|
||||||
|
begin
|
||||||
|
r := inherited;
|
||||||
|
r[length(r)] := "oncreated";
|
||||||
|
r[length(r)] := "ondestroy";
|
||||||
|
return r;
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
//按钮
|
//按钮
|
||||||
|
|
@ -1890,7 +1930,8 @@ type TCheckGroupBox=class(TRadioGroupBox)
|
||||||
begin
|
begin
|
||||||
return array("name","left","top","width","height",
|
return array("name","left","top","width","height",
|
||||||
"align","border","ItemIndexs","caption","color","enabled","font",
|
"align","border","ItemIndexs","caption","color","enabled","font",
|
||||||
"minheight","minwidth","parentfont","parentfont","visible","textpos","wsdlgmodalframe");
|
//"minheight","minwidth",
|
||||||
|
"parentfont","parentfont","visible","textpos","wsdlgmodalframe");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -2168,7 +2209,8 @@ type TRadioGroupBox=class(TGroupbox)
|
||||||
begin
|
begin
|
||||||
r := array("name","left","top","width","height",
|
r := array("name","left","top","width","height",
|
||||||
"align","border","ItemIndexs","caption","color","enabled","font",
|
"align","border","ItemIndexs","caption","color","enabled","font",
|
||||||
"minheight","minwidth","parentfont","parentcolor","visible","textpos","wsdlgmodalframe","onselectionchanged");
|
//"minheight","minwidth",
|
||||||
|
"parentfont","parentcolor","visible","textpos","wsdlgmodalframe","onselectionchanged");
|
||||||
return r;
|
return r;
|
||||||
end
|
end
|
||||||
{**
|
{**
|
||||||
|
|
@ -3076,6 +3118,10 @@ type TPairSplitter=class(tcustomcontrol) //
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
function create(AOwner);override;
|
function create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
caption := "pairspliter";
|
caption := "pairspliter";
|
||||||
|
|
@ -3088,7 +3134,7 @@ type TPairSplitter=class(tcustomcontrol) //
|
||||||
cursor := OCR_SIZEWE;
|
cursor := OCR_SIZEWE;
|
||||||
FWill_Drag := true;
|
FWill_Drag := true;
|
||||||
Color := _wapi.GetSysColor(COLOR_MENUBAR);
|
Color := _wapi.GetSysColor(COLOR_MENUBAR);
|
||||||
end
|
end
|
||||||
function AddSide(ASide);
|
function AddSide(ASide);
|
||||||
begin
|
begin
|
||||||
{**
|
{**
|
||||||
|
|
@ -3252,7 +3298,7 @@ type TPairSplitter=class(tcustomcontrol) //
|
||||||
{$ifdef linux}
|
{$ifdef linux}
|
||||||
if (csDesigning in ComponentState) then
|
if (csDesigning in ComponentState) then
|
||||||
begin
|
begin
|
||||||
pbdr := 2;
|
pbdr := 2;
|
||||||
end
|
end
|
||||||
{$endif}
|
{$endif}
|
||||||
if sd1 and sd1.HandleAllocated()then
|
if sd1 and sd1.HandleAllocated()then
|
||||||
|
|
@ -3266,59 +3312,41 @@ type TPairSplitter=class(tcustomcontrol) //
|
||||||
else sd2.setboundsrect(array(rc[0]+pbdr,rc[1]+pz+4,rc[2]-pbdr,rc[3]-pbdr));
|
else sd2.setboundsrect(array(rc[0]+pbdr,rc[1]+pz+4,rc[2]-pbdr,rc[3]-pbdr));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function Destroy();override;
|
function paint();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
sd1 := GetSides(0);
|
||||||
end
|
sd2 := GetSides(1);
|
||||||
|
if not(sd1 or sd2)then return;
|
||||||
|
rc := GetClientRect();
|
||||||
|
pz := GetPosition();
|
||||||
|
dc := canvas;
|
||||||
|
if FSplitterType=pstHorizontal then
|
||||||
|
begin
|
||||||
|
x := rc[0]+pz+2;
|
||||||
|
y := integer(rc[1]+(rc[3]-rc[1])/2) ;
|
||||||
|
for i := -4 to 4 do
|
||||||
|
begin
|
||||||
|
y1 := y+i*4;
|
||||||
|
dc.SetPixel(array(x,y1),0);
|
||||||
|
end
|
||||||
|
end else
|
||||||
|
begin
|
||||||
|
y := rc[1]+pz+2;
|
||||||
|
x := integer(rc[0]+(rc[2]-rc[0])/2) ;
|
||||||
|
for i := -4 to 4 do
|
||||||
|
begin
|
||||||
|
x1 := x+i*4;
|
||||||
|
dc.SetPixel(array(x1,y),0);
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
function Recycling();override;
|
function Recycling();override;
|
||||||
begin
|
begin
|
||||||
if FDRageimglist then _wapi.ImageList_Destroy(FDRageimglist);
|
if FDRageimglist then _wapi.ImageList_Destroy(FDRageimglist);
|
||||||
inherited;
|
inherited;
|
||||||
end
|
end
|
||||||
function WMERASEBKGND(o,e):WM_ERASEBKGND;override;
|
|
||||||
begin
|
|
||||||
return inherited;
|
|
||||||
dc := e.wparam;
|
|
||||||
if dc then
|
|
||||||
begin
|
|
||||||
cl := Color;
|
|
||||||
rect := array(0,0,0,0);
|
|
||||||
if e.lparam=2 then
|
|
||||||
begin
|
|
||||||
rect := PAINTSTRUCT().rcpaint();
|
|
||||||
end else
|
|
||||||
if HandleAllocated()then
|
|
||||||
begin
|
|
||||||
_wapi.GetClientRect(self.Handle,rect);
|
|
||||||
end else
|
|
||||||
return;
|
|
||||||
rc := rect;
|
|
||||||
wd := 5;
|
|
||||||
if pstHorizontal=FSplitterType then
|
|
||||||
begin
|
|
||||||
rc[0]:= FPosition-wd;
|
|
||||||
rc[2]:= FPosition+wd;
|
|
||||||
end else
|
|
||||||
begin
|
|
||||||
rc[1]:= FPosition-wd;
|
|
||||||
rc[3]:= FPosition+wd;
|
|
||||||
end
|
|
||||||
rect := rc;
|
|
||||||
if ifnumber(cl)then
|
|
||||||
begin
|
|
||||||
Canvas.Brush.Color := cl;
|
|
||||||
Canvas.Handle := dc;
|
|
||||||
Canvas.FillRect(rect);
|
|
||||||
end else
|
|
||||||
begin
|
|
||||||
cl := _wapi.GetStockObject(WHITE_BRUSH);
|
|
||||||
_wapi.FillRect(dc,rect,cl);
|
|
||||||
end
|
|
||||||
e.skip := true;
|
|
||||||
e.Result := 1;
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
property Position:integer read GetPosition write SetPosition;
|
property Position:integer read GetPosition write SetPosition;
|
||||||
property SplitterType:SplitterType read FSplitterType write SetSplitterType;
|
property SplitterType:SplitterType read FSplitterType write SetSplitterType;
|
||||||
function publishs();override;
|
function publishs();override;
|
||||||
|
|
@ -4446,6 +4474,12 @@ type tmonthcalendar = class(TCustomControl)
|
||||||
4.未知错误。
|
4.未知错误。
|
||||||
**}
|
**}
|
||||||
function create(aowner);
|
function create(aowner);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
|
||||||
|
//TodayButton := false;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
width := 213;
|
width := 213;
|
||||||
|
|
@ -4454,8 +4488,7 @@ type tmonthcalendar = class(TCustomControl)
|
||||||
FCalender.ExecuteCommand("memymd",date());
|
FCalender.ExecuteCommand("memymd",date());
|
||||||
FCalender.Left := 1;
|
FCalender.Left := 1;
|
||||||
FCalender.top := 1;
|
FCalender.top := 1;
|
||||||
FCalender.host := self(true);
|
FCalender.host := self(true);
|
||||||
//TodayButton := false;
|
|
||||||
end
|
end
|
||||||
function isContainer(cd);override;
|
function isContainer(cd);override;
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ type tuieventbase=class(TSLUICONST)
|
||||||
Hwnd:pointer;
|
Hwnd:pointer;
|
||||||
_tag;
|
_tag;
|
||||||
{**
|
{**
|
||||||
@param(Message)(integer) ÏûÏ¢id %%
|
@param(Message)(integer|any) ÏûÏ¢id %%
|
||||||
@param(Wparam)(pointer) ÏûÏ¢wparam %%
|
@param(Wparam)(pointer) ÏûÏ¢wparam %%
|
||||||
@param(Lparam)(pointer) ÏûÏ¢lparam %%
|
@param(Lparam)(pointer) ÏûÏ¢lparam %%
|
||||||
@param(Hwnd)(pointer) ´°¿Ú¾ä±ú %%
|
@param(Hwnd)(pointer) ´°¿Ú¾ä±ú %%
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ type TWinControl = class(tcontrol)
|
||||||
private //时间指针
|
private //时间指针
|
||||||
FonKillFocus;
|
FonKillFocus;
|
||||||
FonSetFocus;
|
FonSetFocus;
|
||||||
|
foncreated;
|
||||||
FControlStyle; //控件样式
|
FControlStyle; //控件样式
|
||||||
FOnClose;
|
FOnClose;
|
||||||
FOnDesinedsel;
|
FOnDesinedsel;
|
||||||
|
|
@ -1769,6 +1770,16 @@ type TWinControl = class(tcontrol)
|
||||||
function create(owner);override; //type_twinctrol
|
function create(owner);override; //type_twinctrol
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
AfterConstruction();
|
||||||
|
if foncreated then
|
||||||
|
begin
|
||||||
|
e := new tuieventbase(0,0,0,0);
|
||||||
|
e.sender := (self(true));
|
||||||
|
CallMessgeFunction(foncreated,self(true),e);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
function AfterConstruction();virtual;
|
||||||
|
begin
|
||||||
FUpDateCount := 0;
|
FUpDateCount := 0;
|
||||||
FTabStop := false;
|
FTabStop := false;
|
||||||
FControls := new TFpList();
|
FControls := new TFpList();
|
||||||
|
|
@ -1785,7 +1796,7 @@ type TWinControl = class(tcontrol)
|
||||||
FWMNCHITTEST := new TWMNCHITTEST();
|
FWMNCHITTEST := new TWMNCHITTEST();
|
||||||
FMinWidth := 1; //添加最小限制
|
FMinWidth := 1; //添加最小限制
|
||||||
FMinHeigt := 1;
|
FMinHeigt := 1;
|
||||||
end
|
end
|
||||||
function destroy();override; //type_twinctrol
|
function destroy();override; //type_twinctrol
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
@ -2477,8 +2488,11 @@ type TWinControl = class(tcontrol)
|
||||||
property ImageList:tcontrolimagelist read FImageList write SetImageList;
|
property ImageList:tcontrolimagelist read FImageList write SetImageList;
|
||||||
property onKillFocus:eventhandler read FonKillFocus write FonKillFocus;
|
property onKillFocus:eventhandler read FonKillFocus write FonKillFocus;
|
||||||
property onSetFocus:eventhandler read FonSetFocus write fonSetFocus;
|
property onSetFocus:eventhandler read FonSetFocus write fonSetFocus;
|
||||||
|
property oncreated:eventhandler read foncreated write foncreated;
|
||||||
private //模态相关
|
private //模态相关
|
||||||
property Modaling read FModaling;
|
property Modaling read FModaling;
|
||||||
|
|
||||||
|
|
||||||
{**
|
{**
|
||||||
@param(BorderStyle)(bsNone|bsSingle) 边框样式 %%
|
@param(BorderStyle)(bsNone|bsSingle) 边框样式 %%
|
||||||
@param(Handle)(pointer) 窗口句柄 %%
|
@param(Handle)(pointer) 窗口句柄 %%
|
||||||
|
|
|
||||||
|
|
@ -135,9 +135,12 @@ type tsgtkapi = class(tgtkapis)
|
||||||
end
|
end
|
||||||
function IsWindow(h);
|
function IsWindow(h);
|
||||||
begin
|
begin
|
||||||
wt := static gtk_widget_get_type();
|
if h>0 or h<0 then
|
||||||
r := g_type_check_instance_is_a(h,wt);
|
begin
|
||||||
return r;
|
wt := static gtk_widget_get_type();
|
||||||
|
r := g_type_check_instance_is_a(h,wt);
|
||||||
|
return r;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function GetWindowTextA(h,s,l);
|
function GetWindowTextA(h,s,l);
|
||||||
begin
|
begin
|
||||||
|
|
@ -1016,7 +1019,7 @@ type tsgtkapi = class(tgtkapis)
|
||||||
gtk_object_set_data(dc,"pen.width",2);
|
gtk_object_set_data(dc,"pen.width",2);
|
||||||
LineTo(dc,x+1,y+1);
|
LineTo(dc,x+1,y+1);
|
||||||
gtk_object_set_data(dc,"pen.color",pc);
|
gtk_object_set_data(dc,"pen.color",pc);
|
||||||
gtk_object_set_data(dc,"pen.width",pc);
|
gtk_object_set_data(dc,"pen.width",pw);
|
||||||
return 1;
|
return 1;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -1248,7 +1251,8 @@ type tsgtkapi = class(tgtkapis)
|
||||||
end
|
end
|
||||||
Function DestroyMenu(hMenu:pointer):integer;
|
Function DestroyMenu(hMenu:pointer):integer;
|
||||||
begin
|
begin
|
||||||
return gtk_widget_destroy(hMenu);
|
if hMenu and GTK_WIDGET(hMenu) then
|
||||||
|
return gtk_widget_destroy(hMenu);
|
||||||
end
|
end
|
||||||
Function DrawMenuBar(hwd:pointer):integer; //´¦Àí²Ëµ¥À¸
|
Function DrawMenuBar(hwd:pointer):integer; //´¦Àí²Ëµ¥À¸
|
||||||
begin
|
begin
|
||||||
|
|
@ -1264,21 +1268,21 @@ type tsgtkapi = class(tgtkapis)
|
||||||
if not vb then return ;
|
if not vb then return ;
|
||||||
mb := g_object_get_data(hwd,"menubar");
|
mb := g_object_get_data(hwd,"menubar");
|
||||||
if mb = hmenu then return ;
|
if mb = hmenu then return ;
|
||||||
if mb then
|
{if mb and GTK_WIDGET(mb) then
|
||||||
begin
|
begin
|
||||||
gist := gtk_container_get_children(mb);
|
gist := gtk_container_get_children(mb);
|
||||||
ridx := 0;
|
ridx := 0;
|
||||||
while gist do
|
while gist do
|
||||||
begin
|
begin
|
||||||
og := new _gslist(gist);
|
og := new _gslist(gist);
|
||||||
dt := og.data;
|
dt := og.data;
|
||||||
if dt then
|
if dt then
|
||||||
gtk_container_remove(mb,dt);
|
gtk_container_remove(mb,dt);
|
||||||
ridx++;
|
ridx++;
|
||||||
gist := og.next;
|
gist := og.next;
|
||||||
end
|
end
|
||||||
gtk_widget_destroy(mb);
|
gtk_widget_destroy(mb);
|
||||||
end
|
end}
|
||||||
if hmenu then
|
if hmenu then
|
||||||
begin
|
begin
|
||||||
g_object_set_data(hwd,"menubar",hmenu);
|
g_object_set_data(hwd,"menubar",hmenu);
|
||||||
|
|
|
||||||
|
|
@ -3347,7 +3347,7 @@ type tcustomsynhighlighter = class(TSynHighLighter)
|
||||||
for i,v in ws do
|
for i,v in ws do
|
||||||
begin
|
begin
|
||||||
if v and ifstring(v) then st.add(v);
|
if v and ifstring(v) then st.add(v);
|
||||||
end
|
end
|
||||||
fkeystires := array(st);
|
fkeystires := array(st);
|
||||||
end
|
end
|
||||||
function setblockannote(d); //ÉèÖÿé×¢ÊÍ
|
function setblockannote(d); //ÉèÖÿé×¢ÊÍ
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ type TBasicAction=class(TComponent)
|
||||||
function Notification(AComponent,Operation);override;
|
function Notification(AComponent,Operation);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if Operation="recycling" and AComponent=FActionComponent then //opRemove
|
if Operation=opRecycling and AComponent=FActionComponent then //opRemove
|
||||||
begin
|
begin
|
||||||
FActionComponent := nil;
|
FActionComponent := nil;
|
||||||
if FParent is class(TCustomactionlist)then
|
if FParent is class(TCustomactionlist)then
|
||||||
|
|
@ -332,7 +332,7 @@ type TCustomactionlist=class(TComponent)
|
||||||
function Notification(AComponent,Operation);override;
|
function Notification(AComponent,Operation);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if Operation="recycling" and AComponent=FActionComponent then //opRemove
|
if Operation=opRecycling and AComponent=FActionComponent then //opRemove
|
||||||
begin
|
begin
|
||||||
DeleteAllActions();
|
DeleteAllActions();
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ end
|
||||||
type TOperation=class(tenumeration)
|
type TOperation=class(tenumeration)
|
||||||
static opInsert;
|
static opInsert;
|
||||||
static opRemove;
|
static opRemove;
|
||||||
|
static opRecycling;
|
||||||
end
|
end
|
||||||
|
|
||||||
type TWinControlFlag=class(tenumeration)
|
type TWinControlFlag=class(tenumeration)
|
||||||
|
|
@ -511,6 +512,9 @@ type TSLUICONST=class(tmacroconst,tconstant)
|
||||||
class function sinit();override;
|
class function sinit();override;
|
||||||
begin
|
begin
|
||||||
class(tmacroconst).sinit();
|
class(tmacroconst).sinit();
|
||||||
|
opRemove := "opRemove-";//ÒÆ³ý²Ù×÷
|
||||||
|
opInsert := "opInsert+";//²åÈë
|
||||||
|
opRecycling := "opRecycling-";
|
||||||
WM_TRAY := WM_USER+100;
|
WM_TRAY := WM_USER+100;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,16 @@ type tcustomcoolbar=class(tcustomcontrol)
|
||||||
fbtnwidth := 20;
|
fbtnwidth := 20;
|
||||||
fautosize := true;
|
fautosize := true;
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
Align := alTop;
|
Align := alTop;
|
||||||
FWill_Drag := true;
|
FWill_Drag := true;
|
||||||
cimgst();
|
cimgst();
|
||||||
fdragbtncolor := _wapi.GetSysColor(COLOR_MENUBAR);
|
fdragbtncolor := _wapi.GetSysColor(COLOR_MENUBAR);
|
||||||
end
|
end
|
||||||
function ControlAppended(AControl);override;
|
function ControlAppended(AControl);override;
|
||||||
begin
|
begin
|
||||||
it := new tcoolband(AControl);
|
it := new tcoolband(AControl);
|
||||||
|
|
@ -285,6 +290,14 @@ type tcustomcoolbar=class(tcustomcontrol)
|
||||||
rc1[array(0,1)]
|
rc1[array(0,1)]
|
||||||
);
|
);
|
||||||
dc.draw("polyline",ply) ;
|
dc.draw("polyline",ply) ;
|
||||||
|
x := integer(rc1[0]+(rc1[2]-rc1[0])/2);
|
||||||
|
y := integer(rc1[1]+(rc1[3]-rc1[1])/2);
|
||||||
|
for i := -2 to 1 do
|
||||||
|
begin
|
||||||
|
y1 := y+i*4;
|
||||||
|
if y1>rc1[1] and y1<rc1[3] then
|
||||||
|
dc.SetPixel(array(x,y1),30);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function arange2a(s);
|
function arange2a(s);
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ type TCommDlg=class(tcomponent)
|
||||||
end
|
end
|
||||||
function Notification(AComponent,Operation);override;
|
function Notification(AComponent,Operation);override;
|
||||||
begin
|
begin
|
||||||
if Operation="recycling" then //opRemove
|
if Operation=opRecycling then //opRemove
|
||||||
begin
|
begin
|
||||||
if AComponent=FWndOwner then FWndOwner := nil;
|
if AComponent=FWndOwner then FWndOwner := nil;
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,10 @@ type TcustomGridCtl = class(TCustomControl) //
|
||||||
@explan(说明) 自绘制表格控件 %%
|
@explan(说明) 自绘制表格控件 %%
|
||||||
**}
|
**}
|
||||||
function Create(AOwner);override; //构造
|
function Create(AOwner);override; //构造
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FLocalX := 0;
|
FLocalX := 0;
|
||||||
|
|
@ -35,7 +39,7 @@ type TcustomGridCtl = class(TCustomControl) //
|
||||||
FRowsHeight := new tnumindexarray();
|
FRowsHeight := new tnumindexarray();
|
||||||
FVariableRows := false;
|
FVariableRows := false;
|
||||||
FSI := new TScrollinfo();
|
FSI := new TScrollinfo();
|
||||||
end
|
end
|
||||||
function GetItemRect(i);virtual; //根据行号获得其区域
|
function GetItemRect(i);virtual; //根据行号获得其区域
|
||||||
begin
|
begin
|
||||||
{**
|
{**
|
||||||
|
|
|
||||||
|
|
@ -472,7 +472,7 @@ private
|
||||||
function Notification(AComponent:TComponent;Operation:TOperation);override;
|
function Notification(AComponent:TComponent;Operation:TOperation);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if Operation="recycling" then //opRemove
|
if Operation=opRecycling then //opRemove
|
||||||
begin
|
begin
|
||||||
if AComponent=Action then Action := nil;
|
if AComponent=Action then Action := nil;
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -402,6 +402,11 @@ type tcustompagecontrol = class(TCustomControl)
|
||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
function create(aowner);
|
function create(aowner);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
color := 0xffffff;
|
color := 0xffffff;
|
||||||
|
|
@ -413,7 +418,7 @@ type tcustompagecontrol = class(TCustomControl)
|
||||||
FirstViewIndex := 0;
|
FirstViewIndex := 0;
|
||||||
FCurrentid := -1;
|
FCurrentid := -1;
|
||||||
FPrevid := -1;
|
FPrevid := -1;
|
||||||
FTabItems := new tnumindexarray();
|
FTabItems := new tnumindexarray();
|
||||||
end
|
end
|
||||||
|
|
||||||
Function SetCurSel(id);
|
Function SetCurSel(id);
|
||||||
|
|
|
||||||
|
|
@ -328,6 +328,11 @@ type tcustombtn = class(TCustomControl) //
|
||||||
@explan(綱츠) 팹繫객큐 %%
|
@explan(綱츠) 팹繫객큐 %%
|
||||||
**}
|
**}
|
||||||
function Create(aowner);
|
function Create(aowner);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
Caption:="button";
|
Caption:="button";
|
||||||
|
|
@ -2294,6 +2299,11 @@ type tcustomedit=class(TCustomControl)
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
Left := 10;
|
Left := 10;
|
||||||
|
|
@ -2303,7 +2313,7 @@ type tcustomedit=class(TCustomControl)
|
||||||
Height := 25;
|
Height := 25;
|
||||||
FEditable := new TEntryEditable();
|
FEditable := new TEntryEditable();
|
||||||
FEditable.host := self(true);
|
FEditable.host := self(true);
|
||||||
end
|
end
|
||||||
function ExecuteCommand(cmd,pm);override;
|
function ExecuteCommand(cmd,pm);override;
|
||||||
begin
|
begin
|
||||||
if FEditable then return FEditable.ExecuteCommand(cmd,pm);
|
if FEditable then return FEditable.ExecuteCommand(cmd,pm);
|
||||||
|
|
@ -2616,6 +2626,11 @@ type tthreeEntry=class(TCustomControl)
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
function create(aowner);
|
function create(aowner);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
border := true;
|
border := true;
|
||||||
|
|
@ -2639,7 +2654,7 @@ type tthreeEntry=class(TCustomControl)
|
||||||
end
|
end
|
||||||
calcCtls();
|
calcCtls();
|
||||||
FEntrys :: mcell.host := self(true);
|
FEntrys :: mcell.host := self(true);
|
||||||
end
|
end
|
||||||
function paint();override;
|
function paint();override;
|
||||||
begin
|
begin
|
||||||
for i,v in FEntrys do
|
for i,v in FEntrys do
|
||||||
|
|
@ -3725,6 +3740,11 @@ type TCustomComboBoxbase=class(TCustomControl)
|
||||||
@explan(綱츠) combox 샘잚 %%
|
@explan(綱츠) combox 샘잚 %%
|
||||||
**}
|
**}
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FBtnWidth := 20;
|
FBtnWidth := 20;
|
||||||
|
|
@ -3741,7 +3761,7 @@ type TCustomComboBoxbase=class(TCustomControl)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
SetBoundsRect(array(0,0,100,23));
|
SetBoundsRect(array(0,0,100,23));
|
||||||
end
|
end
|
||||||
function CreateAlist();virtual;
|
function CreateAlist();virtual;
|
||||||
begin
|
begin
|
||||||
{**
|
{**
|
||||||
|
|
@ -4420,6 +4440,11 @@ type TcustomToolBar=class(TCustomControl)
|
||||||
@explan(綱츠) 묏야으왠숭 %%
|
@explan(綱츠) 묏야으왠숭 %%
|
||||||
**}
|
**}
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
height := 28;
|
height := 28;
|
||||||
|
|
@ -4433,7 +4458,7 @@ type TcustomToolBar=class(TCustomControl)
|
||||||
FTimer := new TCustomTimer(self);
|
FTimer := new TCustomTimer(self);
|
||||||
FTimer.Interval := 200;
|
FTimer.Interval := 200;
|
||||||
FTimer.Ontimer := thisfunction(DoTimerShowTip);
|
FTimer.Ontimer := thisfunction(DoTimerShowTip);
|
||||||
end
|
end
|
||||||
function MouseDown(o,e);override;
|
function MouseDown(o,e);override;
|
||||||
begin
|
begin
|
||||||
if csDesigning in ComponentState then return;
|
if csDesigning in ComponentState then return;
|
||||||
|
|
@ -4826,7 +4851,7 @@ type TcustomToolBar=class(TCustomControl)
|
||||||
end
|
end
|
||||||
function Notification(a,op);override;
|
function Notification(a,op);override;
|
||||||
begin
|
begin
|
||||||
if a=fmainmenu and op="recycling" then
|
if a=fmainmenu and op=opRecycling then
|
||||||
begin
|
begin
|
||||||
setmainmenu(nil);
|
setmainmenu(nil);
|
||||||
end
|
end
|
||||||
|
|
@ -5885,6 +5910,11 @@ type tcustomipaddr = class(TCustomControl)
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
//for i,v in FEditors do v.FIPValueChanged := thisfunction(DoIpChanged);
|
||||||
|
end
|
||||||
|
function AfterConstruction();override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
minheight:=15;
|
minheight:=15;
|
||||||
|
|
@ -5913,7 +5943,6 @@ type tcustomipaddr = class(TCustomControl)
|
||||||
calcportsize();
|
calcportsize();
|
||||||
for i,v in Feditors do V.host := self(true);
|
for i,v in Feditors do V.host := self(true);
|
||||||
setAddress("127.0.0.1:443");
|
setAddress("127.0.0.1:443");
|
||||||
//for i,v in FEditors do v.FIPValueChanged := thisfunction(DoIpChanged);
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function FontChanged(sender);override;
|
function FontChanged(sender);override;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue