parent
3d3a47f190
commit
8ea9849190
|
|
@ -98,7 +98,7 @@ type TDComponent = class()
|
||||||
{**
|
{**
|
||||||
@explan(说明)工具栏提示 该函数必须override%%
|
@explan(说明)工具栏提示 该函数必须override%%
|
||||||
**}
|
**}
|
||||||
|
return dclassname();
|
||||||
return "tcomponent";
|
return "tcomponent";
|
||||||
end
|
end
|
||||||
function classification();virtual;
|
function classification();virtual;
|
||||||
|
|
@ -2281,6 +2281,7 @@ type TDImageList = class(TDRootComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "图像列表";
|
return "图像列表";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -2361,6 +2362,7 @@ type TDLabel = class(TDComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "静态文本框";
|
return "静态文本框";
|
||||||
end
|
end
|
||||||
function IsContainer();override;
|
function IsContainer();override;
|
||||||
|
|
@ -2411,6 +2413,7 @@ type TDTimer = class(TDRootComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "定时器";
|
return "定时器";
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -2519,10 +2522,12 @@ type TDOpenFileADlg = class(TDRootComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "文件选择";
|
return "文件选择";
|
||||||
end
|
end
|
||||||
function classification();override;
|
function classification();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "对话框";
|
return "对话框";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -2606,6 +2611,7 @@ type TDInputQuerys = class(TDRootComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "数据输入对话框";
|
return "数据输入对话框";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -2828,6 +2834,7 @@ type TDToolBar = class(TDComponent)
|
||||||
public
|
public
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "工具栏";
|
return "工具栏";
|
||||||
end
|
end
|
||||||
function DefaultAlign();override;
|
function DefaultAlign();override;
|
||||||
|
|
@ -2884,6 +2891,7 @@ type TDStatusBar = class(TDComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "状态栏";
|
return "状态栏";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -2938,6 +2946,7 @@ type TDTray = class(TDRootComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "托盘";
|
return "托盘";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -3014,6 +3023,7 @@ type TDMainMenu = class(TDMenuBase)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "主菜单";
|
return "主菜单";
|
||||||
end
|
end
|
||||||
function ComponentClass();override;
|
function ComponentClass();override;
|
||||||
|
|
@ -3051,6 +3061,7 @@ type TDMenu = class(TDMenuBase)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "menu通过右键添加";
|
return "menu通过右键添加";
|
||||||
end
|
end
|
||||||
function classification();override;
|
function classification();override;
|
||||||
|
|
@ -3111,6 +3122,7 @@ type TDAction = class(TDComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "taction通过右键添加";
|
return "taction通过右键添加";
|
||||||
end
|
end
|
||||||
function IsContainer();override;
|
function IsContainer();override;
|
||||||
|
|
@ -3280,6 +3292,7 @@ type TDPopUpMenu = class(TDMenuBase)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "右键菜单";
|
return "右键菜单";
|
||||||
end
|
end
|
||||||
function libs();override;
|
function libs();override;
|
||||||
|
|
@ -3313,6 +3326,7 @@ end
|
||||||
type TDClipBoard = class(TDRootComponent)
|
type TDClipBoard = class(TDRootComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "剪切板";
|
return "剪切板";
|
||||||
end
|
end
|
||||||
function libs();override;
|
function libs();override;
|
||||||
|
|
@ -3351,6 +3365,7 @@ end
|
||||||
type TDQuotations = class(TDRootComponent)
|
type TDQuotations = class(TDRootComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "行情订阅";
|
return "行情订阅";
|
||||||
end
|
end
|
||||||
function libs();override;
|
function libs();override;
|
||||||
|
|
@ -3516,6 +3531,7 @@ type TDTreeView = class (TDComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "树控件";
|
return "树控件";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -3627,6 +3643,7 @@ type TDListView = class(TDComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "列表视图控件";
|
return "列表视图控件";
|
||||||
end
|
end
|
||||||
function IsContainer();override;
|
function IsContainer();override;
|
||||||
|
|
@ -7976,6 +7993,7 @@ end
|
||||||
type TDedit= class(TDComponent)
|
type TDedit= class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "文本框控件";
|
return "文本框控件";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -8014,6 +8032,7 @@ end
|
||||||
type TDmemo= class(TDComponent)
|
type TDmemo= class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "多行文本";
|
return "多行文本";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -8082,6 +8101,7 @@ end
|
||||||
type TDpassword= class(TDComponent)
|
type TDpassword= class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "密码框";
|
return "密码框";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -8158,6 +8178,7 @@ end
|
||||||
type TDcomboBox= class(TDComponent)
|
type TDcomboBox= class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "下拉选择框";
|
return "下拉选择框";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -8243,6 +8264,7 @@ type TDradiobtn = class(TDComponent)
|
||||||
|
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "单选框";
|
return "单选框";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -8292,6 +8314,7 @@ type TDipaddr= class(TDComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "ip地址控件";
|
return "ip地址控件";
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
|
|
@ -8401,6 +8424,7 @@ type TDListBox=class(TDComponent)
|
||||||
end
|
end
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "列表框";
|
return "列表框";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -8468,6 +8492,7 @@ type TDCalendar=class(TDComponent)
|
||||||
end
|
end
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "日历";
|
return "日历";
|
||||||
end
|
end
|
||||||
function dclassname();override;begin
|
function dclassname();override;begin
|
||||||
|
|
@ -8509,6 +8534,7 @@ type TDProgressBar=class(TDComponent)
|
||||||
return 0;
|
return 0;
|
||||||
end
|
end
|
||||||
function HitTip();override;begin
|
function HitTip();override;begin
|
||||||
|
return inherited;
|
||||||
return "进度条";
|
return "进度条";
|
||||||
end
|
end
|
||||||
function dclassname();override;begin
|
function dclassname();override;begin
|
||||||
|
|
@ -8550,6 +8576,7 @@ type TDCheckBtn=class(TDComponent)
|
||||||
return 0;
|
return 0;
|
||||||
end
|
end
|
||||||
function HitTip();override;begin
|
function HitTip();override;begin
|
||||||
|
return inherited;
|
||||||
return "复选框";
|
return "复选框";
|
||||||
end
|
end
|
||||||
function dclassname();override;begin
|
function dclassname();override;begin
|
||||||
|
|
@ -8606,6 +8633,7 @@ public
|
||||||
return 0;
|
return 0;
|
||||||
end
|
end
|
||||||
function HitTip();override;begin
|
function HitTip();override;begin
|
||||||
|
return inherited;
|
||||||
return "时间日期选择";
|
return "时间日期选择";
|
||||||
end
|
end
|
||||||
function dclassname();override;begin
|
function dclassname();override;begin
|
||||||
|
|
@ -8637,6 +8665,7 @@ type TDTimePicker=class(TDComponent)
|
||||||
return 0;
|
return 0;
|
||||||
end
|
end
|
||||||
function HitTip();override;begin
|
function HitTip();override;begin
|
||||||
|
return inherited;
|
||||||
return "时间选择";
|
return "时间选择";
|
||||||
end
|
end
|
||||||
function dclassname();override;begin
|
function dclassname();override;begin
|
||||||
|
|
@ -8774,6 +8803,7 @@ end
|
||||||
type TDPanel = class(TDComponent)
|
type TDPanel = class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "容器控件";
|
return "容器控件";
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -8822,6 +8852,7 @@ type TDGroupBox = class(TDComponent)
|
||||||
**}
|
**}
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "分组框";
|
return "分组框";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -8857,6 +8888,7 @@ end
|
||||||
type TDBtn = class(TDComponent)
|
type TDBtn = class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "按钮";
|
return "按钮";
|
||||||
end
|
end
|
||||||
function IsContainer();override;
|
function IsContainer();override;
|
||||||
|
|
@ -8900,6 +8932,7 @@ end
|
||||||
type TDPairSplitterSide = class(TDComponent)
|
type TDPairSplitterSide = class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "PairSplitterSide\r\n在splitter控件中右键添加";
|
return "PairSplitterSide\r\n在splitter控件中右键添加";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -8946,6 +8979,7 @@ end
|
||||||
type TDPairSplitter = class(TDComponent)
|
type TDPairSplitter = class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "成对分配器";
|
return "成对分配器";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -9017,6 +9051,7 @@ type TDTabSheet = class(TDComponent)
|
||||||
end
|
end
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "pagesheet\r\n在page控件中右键添加";
|
return "pagesheet\r\n在page控件中右键添加";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
@ -9065,6 +9100,7 @@ end
|
||||||
type TDPage = class(TDComponent)
|
type TDPage = class(TDComponent)
|
||||||
function HitTip();override;
|
function HitTip();override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
return "页面控件";
|
return "页面控件";
|
||||||
end
|
end
|
||||||
function dclassname();override;
|
function dclassname();override;
|
||||||
|
|
|
||||||
|
|
@ -1554,7 +1554,7 @@ type tbtn = class(tcustombtn)
|
||||||
function publishs();override;
|
function publishs();override;
|
||||||
begin
|
begin
|
||||||
return array("name","action","left","top","width","height",
|
return array("name","action","left","top","width","height",
|
||||||
"align","anchors","caption","font","enabled","visible","bkbitmap","color","tabstop","onclick","onmousemove");
|
"align","anchors","caption","font","enabled","visible","bkbitmap","color","tabstop","onclick","onmousemove","onsetfocus","onkillfocus");
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
@ -2994,7 +2994,7 @@ type TPairSplitterSide=class(TCustomControl)
|
||||||
return array("name","border","caption","color","popupmenu","bkbitmap","wsdlgmodalframe","onsize");
|
return array("name","border","caption","color","popupmenu","bkbitmap","wsdlgmodalframe","onsize");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
type TPairSplitter=class(TWinControl) //
|
type TPairSplitter=class(tcustomcontrol) //
|
||||||
{**
|
{**
|
||||||
@explan(˵Ã÷)·Ö¸î¿Ø¼þ %%
|
@explan(˵Ã÷)·Ö¸î¿Ø¼þ %%
|
||||||
**}
|
**}
|
||||||
|
|
@ -3031,7 +3031,7 @@ type TPairSplitter=class(TWinControl) //
|
||||||
end
|
end
|
||||||
Function SetSplitterType(v);
|
Function SetSplitterType(v);
|
||||||
begin
|
begin
|
||||||
if v in array(pstHorizontal,pstVertical)and v <> FSplitterType then
|
if (v in array(pstHorizontal,pstVertical)) and v <> FSplitterType then
|
||||||
begin
|
begin
|
||||||
FSplitterType := v;
|
FSplitterType := v;
|
||||||
if FSplitterType=pstVertical then cursor := OCR_SIZENS else cursor := OCR_SIZEWE;
|
if FSplitterType=pstVertical then cursor := OCR_SIZENS else cursor := OCR_SIZEWE;
|
||||||
|
|
@ -3078,10 +3078,7 @@ type TPairSplitter=class(TWinControl) //
|
||||||
FSplitterType := pstHorizontal;
|
FSplitterType := pstHorizontal;
|
||||||
cursor := OCR_SIZEWE;
|
cursor := OCR_SIZEWE;
|
||||||
FWill_Drag := true;
|
FWill_Drag := true;
|
||||||
end
|
Color := _wapi.GetSysColor(COLOR_MENUBAR);
|
||||||
function CreateParams(p);override;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
end
|
end
|
||||||
function AddSide(ASide);
|
function AddSide(ASide);
|
||||||
begin
|
begin
|
||||||
|
|
@ -3110,12 +3107,32 @@ type TPairSplitter=class(TWinControl) //
|
||||||
begin
|
begin
|
||||||
_wapi.ImageList_DragLeave(self.Handle);
|
_wapi.ImageList_DragLeave(self.Handle);
|
||||||
_wapi.ImageList_EndDrag();
|
_wapi.ImageList_EndDrag();
|
||||||
|
r := ClientRect;
|
||||||
if FSplitterType=pstHorizontal then
|
if FSplitterType=pstHorizontal then
|
||||||
begin
|
begin
|
||||||
FPosition := e.xpos;
|
x := e.xpos ;
|
||||||
|
if x<(r[0]+2) then
|
||||||
|
begin
|
||||||
|
x := r[0]+5;
|
||||||
|
end else
|
||||||
|
if x>(r[2]-2) then
|
||||||
|
begin
|
||||||
|
x := r[2]-5;
|
||||||
|
end
|
||||||
|
FPosition := x;
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
FPosition := e.ypos;
|
x := e.ypos;
|
||||||
|
if x<(r[1]+2) then
|
||||||
|
begin
|
||||||
|
x := r[1]+5;
|
||||||
|
end else
|
||||||
|
if x>(r[3]-2) then
|
||||||
|
begin
|
||||||
|
x := r[3]-5;
|
||||||
|
end
|
||||||
|
|
||||||
|
FPosition :=x;
|
||||||
end
|
end
|
||||||
EnabledChild(true);
|
EnabledChild(true);
|
||||||
FWill_Drag := true;
|
FWill_Drag := true;
|
||||||
|
|
@ -3225,6 +3242,7 @@ type TPairSplitter=class(TWinControl) //
|
||||||
end
|
end
|
||||||
function WMERASEBKGND(o,e):WM_ERASEBKGND;override;
|
function WMERASEBKGND(o,e):WM_ERASEBKGND;override;
|
||||||
begin
|
begin
|
||||||
|
return inherited;
|
||||||
dc := e.wparam;
|
dc := e.wparam;
|
||||||
if dc then
|
if dc then
|
||||||
begin
|
begin
|
||||||
|
|
@ -3265,12 +3283,13 @@ type TPairSplitter=class(TWinControl) //
|
||||||
e.Result := 1;
|
e.Result := 1;
|
||||||
end
|
end
|
||||||
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;
|
||||||
begin
|
begin
|
||||||
return array("name","left","top","width","height",
|
return array("name","left","top","width","height",
|
||||||
"align","anchors","border","caption","enabled","visible","SplitterType","position",
|
"align","anchors","border","caption","enabled","visible","splittertype","position",
|
||||||
"wsdlgmodalframe","wscaption","wspopup","wssizebox","wssysmenu");
|
"wsdlgmodalframe","wscaption","wspopup","wssizebox","wssysmenu");
|
||||||
end
|
end
|
||||||
{**
|
{**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue