parent
d4c78d9928
commit
b819fd95d6
Binary file not shown.
|
|
@ -2104,28 +2104,7 @@ type TPopUpMenuWindow = class(TDVirutalWindow)
|
||||||
return GetPopUpMenuBitmapInfo();
|
return GetPopUpMenuBitmapInfo();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
type TSocketServerWindow = class(TDVirutalWindow)
|
|
||||||
function Create(AOwner);override;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
BindComp := new TSocketServer(self);
|
|
||||||
end
|
|
||||||
function bitmapinfo();override;
|
|
||||||
begin
|
|
||||||
return GetServerBitmapInfo();
|
|
||||||
end
|
|
||||||
end
|
|
||||||
type TSocketClientWindow = class(TDVirutalWindow)
|
|
||||||
function Create(AOwner);override;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
BindComp := new TSocketClient(self);
|
|
||||||
end
|
|
||||||
function bitmapinfo();override;
|
|
||||||
begin
|
|
||||||
return GetClientBitmapInfo();
|
|
||||||
end
|
|
||||||
end
|
|
||||||
type TClipBordWindow = class(TDVirutalWindow)
|
type TClipBordWindow = class(TDVirutalWindow)
|
||||||
function Create(AOwner);override;
|
function Create(AOwner);override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -2282,74 +2261,7 @@ type TDtlogincontrol = class(TDRootComponent)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
//*************Server*************************
|
|
||||||
type TDSocketServer = class(TDRootComponent)
|
|
||||||
{**
|
|
||||||
@explan(说明) 弹出菜单控件 %%
|
|
||||||
**}
|
|
||||||
function HitTip();override;
|
|
||||||
begin
|
|
||||||
return "socket服务端";
|
|
||||||
end
|
|
||||||
function classification();override;
|
|
||||||
begin
|
|
||||||
return "天软";
|
|
||||||
end
|
|
||||||
function ComponentClass();override;
|
|
||||||
begin
|
|
||||||
return class(TSocketServer);
|
|
||||||
end
|
|
||||||
function bitmapinfo();override;
|
|
||||||
begin
|
|
||||||
return GetServerBitmapInfo();
|
|
||||||
end
|
|
||||||
|
|
||||||
function WndClass();override;
|
|
||||||
begin
|
|
||||||
return Class(TSocketServerWindow);
|
|
||||||
end
|
|
||||||
function Create(AOwner);override;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
fiscontainerdcmp := false;
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
//*************client**********************
|
|
||||||
|
|
||||||
type TDSocketClient = class(TDRootComponent)
|
|
||||||
{**
|
|
||||||
@explan(说明) 弹出菜单控件 %%
|
|
||||||
**}
|
|
||||||
function HitTip();override;
|
|
||||||
begin
|
|
||||||
return "socket客户端";
|
|
||||||
end
|
|
||||||
function classification();override;
|
|
||||||
begin
|
|
||||||
return "天软";
|
|
||||||
end
|
|
||||||
function ComponentClass();override;
|
|
||||||
begin
|
|
||||||
return class(TSocketClient);
|
|
||||||
end
|
|
||||||
function bitmapinfo();override;
|
|
||||||
begin
|
|
||||||
return GetClientBitmapInfo();
|
|
||||||
end
|
|
||||||
|
|
||||||
function WndClass();override;
|
|
||||||
begin
|
|
||||||
return Class(TSocketClientWindow);
|
|
||||||
end
|
|
||||||
function Create(AOwner);override;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
fiscontainerdcmp := false;
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
//*************TTreeView***************************
|
//*************TTreeView***************************
|
||||||
type TDTreeView = class (TDComponent)
|
type TDTreeView = class (TDComponent)
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -5935,14 +5935,44 @@ type tcustomprogressbar=class(TCustomControl)
|
||||||
if Fvertical then
|
if Fvertical then
|
||||||
begin
|
begin
|
||||||
d := rt *h;
|
d := rt *h;
|
||||||
br[0] +=(h-d);
|
br[1] +=(h-d);
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
d := floor(rt*w);
|
d := floor(rt*w);
|
||||||
br[2] := br[0]+d;
|
br[2] := br[0]+d;
|
||||||
end
|
end
|
||||||
dc.brush.color := FbarColor;
|
dc.brush.color := FbarColor;
|
||||||
dc.FillRect(br);
|
dc.FillRect(br);
|
||||||
|
if not Fsmooth then
|
||||||
|
begin
|
||||||
|
pc := dc.pen.Color;
|
||||||
|
pw := dc.pen.Width;
|
||||||
|
dc.pen.Color := color;
|
||||||
|
dc.pen.Width := 2;
|
||||||
|
sp := 18;
|
||||||
|
if Fvertical then
|
||||||
|
begin
|
||||||
|
p := br[3]-sp;
|
||||||
|
while p>br[1] do
|
||||||
|
begin
|
||||||
|
dc.moveto(array(r[0],p));
|
||||||
|
dc.LineTo(array(r[2],p));
|
||||||
|
p-=sp;
|
||||||
|
|
||||||
|
end
|
||||||
|
end else
|
||||||
|
begin
|
||||||
|
p := sp ;
|
||||||
|
while p<br[2] do
|
||||||
|
begin
|
||||||
|
dc.moveto(array(p,r[1]));
|
||||||
|
dc.LineTo(array(p,r[3]));
|
||||||
|
p+=sp;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
dc.pen.Color := pc;
|
||||||
|
dc.pen.Width := pw;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function increaseByStep();
|
function increaseByStep();
|
||||||
begin
|
begin
|
||||||
|
|
@ -5989,14 +6019,14 @@ type tcustomprogressbar=class(TCustomControl)
|
||||||
@param(stepincrement)(integer)½ø¶ÈÀ¸µÄ²½ÔöÁ¿%%
|
@param(stepincrement)(integer)½ø¶ÈÀ¸µÄ²½ÔöÁ¿%%
|
||||||
**}
|
**}
|
||||||
|
|
||||||
private
|
private //属性
|
||||||
Fsmooth;
|
Fsmooth;
|
||||||
Fvertical;
|
Fvertical;
|
||||||
Frange;
|
Frange;
|
||||||
Fposition;
|
Fposition;
|
||||||
Fstep;
|
Fstep;
|
||||||
FbarColor;
|
FbarColor;
|
||||||
private
|
private //属性处理函数
|
||||||
function setSmooth(n);
|
function setSmooth(n);
|
||||||
begin
|
begin
|
||||||
Fsmooth := n;
|
Fsmooth := n;
|
||||||
|
|
@ -6388,10 +6418,10 @@ type tcustomipaddr = class(TCustomControl)
|
||||||
end
|
end
|
||||||
property HasPort:bool read FHasPort write SetHasPort;
|
property HasPort:bool read FHasPort write SetHasPort;
|
||||||
property ipaddr:string read getAddress write setAddress;
|
property ipaddr:string read getAddress write setAddress;
|
||||||
property onAddrChange:eventhandler read FaddrChange write FaddrChange;
|
property onaddrchanged:eventhandler read FaddrChange write FaddrChange;
|
||||||
{**
|
{**
|
||||||
@param(ipaddr)(string)ipµØÖ·%%
|
@param(ipaddr)(string)ipµØÖ·%%
|
||||||
@param(onAddrChange)(function[tIPAddr,tuieventbase])id華硊曹趙隙覃%%
|
@param(onaddrchanged)(function[tIPAddr,tuieventbase])id地址变化回调%%
|
||||||
**}
|
**}
|
||||||
private
|
private
|
||||||
FEditors;
|
FEditors;
|
||||||
|
|
@ -6443,8 +6473,7 @@ type tcustomipaddr = class(TCustomControl)
|
||||||
nv := v?true:false;
|
nv := v?true:false;
|
||||||
if FHasPort <>nv then
|
if FHasPort <>nv then
|
||||||
begin
|
begin
|
||||||
FHasPort := nv;
|
FHasPort := nv;
|
||||||
|
|
||||||
calcportsize();
|
calcportsize();
|
||||||
FPort.Visible := nv;
|
FPort.Visible := nv;
|
||||||
InvalidateRect(nil,false);
|
InvalidateRect(nil,false);
|
||||||
|
|
@ -6496,9 +6525,7 @@ type tcustomipaddr = class(TCustomControl)
|
||||||
Fsynrects[3,0] := ":";
|
Fsynrects[3,0] := ":";
|
||||||
Fsynrects[3,1] := rc1;
|
Fsynrects[3,1] := rc1;
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
type TtoolbuttonActionLink=class(TControlActionLink)
|
type TtoolbuttonActionLink=class(TControlActionLink)
|
||||||
{**
|
{**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue