界面库

整理代码
This commit is contained in:
JianjunLiu
2022-09-09 16:02:34 +08:00
parent eb2b6a7a44
commit 2265e8fe3d
4 changed files with 14 additions and 9 deletions
+3 -3
View File
@@ -438,9 +438,9 @@ type tcontrol = class(tcomponent)
begin begin
FVisible := Value?true:false; FVisible := Value?true:false;
end end
procedure DoOnParentHandleDestruction;virtual; //procedure DoOnParentHandleDestruction;virtual;
begin //begin
end //end
#!end #!end
protected protected
+2
View File
@@ -3,6 +3,7 @@ type tcustomcontrol=class(TWinControl)
{** {**
@explan(说明) 自绘制窗口控件 %% @explan(说明) 自绘制窗口控件 %%
**} **}
//20220908添加splitter功能
private private
FOnPaint:TNotifyEvent; FOnPaint:TNotifyEvent;
protected protected
@@ -128,6 +129,7 @@ type tcustomcontrol=class(TWinControl)
function WMMouseMove(o,e);override; //移动 function WMMouseMove(o,e);override; //移动
begin begin
if fhasspliter<1 then return inherited; if fhasspliter<1 then return inherited;
if csDesigning in ComponentState then return inherited;
if fsplitterdraging then if fsplitterdraging then
begin begin
cimgst(); cimgst();
+6 -6
View File
@@ -48,12 +48,12 @@ type tgraphiccontrol = class(TControl)
//_wapi.DrawEdge(Canvas.handle,const ClientRect,EDGE_ETCHED,BF_RECT); //_wapi.DrawEdge(Canvas.handle,const ClientRect,EDGE_ETCHED,BF_RECT);
//_wapi.DrawFocusRect(Canvas.Handle,const ClientRect); //_wapi.DrawFocusRect(Canvas.Handle,const ClientRect);
end end
procedure DoOnChangeBounds();override; //procedure DoOnChangeBounds();override;
begin //begin
end //end
procedure DoOnParentHandleDestruction;override; //procedure DoOnParentHandleDestruction;override;
begin //begin
end //end
function InvalidateRectForce(); function InvalidateRectForce();
begin begin
if Parent then if Parent then
+3
View File
@@ -2510,6 +2510,9 @@ type tcoolbar = class(tcustomcoolbar)
end end
end end
type tsplitter = class(tcustomsplitter) type tsplitter = class(tcustomsplitter)
{**
@explan(说明) splitter 控件 %%
**}
function create(AOwner); function create(AOwner);
begin begin
inherited; inherited;