界面库

整理代码
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

View File

@ -438,9 +438,9 @@ type tcontrol = class(tcomponent)
begin
FVisible := Value?true:false;
end
procedure DoOnParentHandleDestruction;virtual;
begin
end
//procedure DoOnParentHandleDestruction;virtual;
//begin
//end
#!end
protected

View File

@ -3,6 +3,7 @@ type tcustomcontrol=class(TWinControl)
{**
@explan(说明) 自绘制窗口控件 %%
**}
//20220908添加splitter功能
private
FOnPaint:TNotifyEvent;
protected
@ -128,6 +129,7 @@ type tcustomcontrol=class(TWinControl)
function WMMouseMove(o,e);override; //移动
begin
if fhasspliter<1 then return inherited;
if csDesigning in ComponentState then return inherited;
if fsplitterdraging then
begin
cimgst();

View File

@ -48,12 +48,12 @@ type tgraphiccontrol = class(TControl)
//_wapi.DrawEdge(Canvas.handle,const ClientRect,EDGE_ETCHED,BF_RECT);
//_wapi.DrawFocusRect(Canvas.Handle,const ClientRect);
end
procedure DoOnChangeBounds();override;
begin
end
procedure DoOnParentHandleDestruction;override;
begin
end
//procedure DoOnChangeBounds();override;
//begin
//end
//procedure DoOnParentHandleDestruction;override;
//begin
//end
function InvalidateRectForce();
begin
if Parent then

View File

@ -2510,6 +2510,9 @@ type tcoolbar = class(tcustomcoolbar)
end
end
type tsplitter = class(tcustomsplitter)
{**
@explan(说明) splitter 控件 %%
**}
function create(AOwner);
begin
inherited;