设计器

修改属性输出方式
This commit is contained in:
JianjunLiu 2023-04-27 16:39:02 +08:00
parent 147a737e12
commit 08efcf2722
14 changed files with 127 additions and 462 deletions

View File

@ -421,10 +421,10 @@ type TProjectView = class(TVCForm) //
FSetMainMenu.caption := "设置为主窗口"; FSetMainMenu.caption := "设置为主窗口";
FSetMainMenu.bitmap := bmps["主窗口"]; FSetMainMenu.bitmap := bmps["主窗口"];
FSetMainMenu.OnClick := thisfunction(SetAsMainWind); FSetMainMenu.OnClick := thisfunction(SetAsMainWind);
FSetEntryMenu := new TMenu(self); //FSetEntryMenu := new TMenu(self);
FSetEntryMenu.Caption := "设置为入口脚本"; //FSetEntryMenu.Caption := "设置为入口脚本";
FSetEntryMenu.bitmap := bmps["入口"]; //FSetEntryMenu.bitmap := bmps["入口"];
FSetEntryMenu.OnClick := thisfunction(SetAsMainWind); //FSetEntryMenu.OnClick := thisfunction(SetAsMainWind);
FDelMenu := new TPopUpMenu(self); FDelMenu := new TPopUpMenu(self);
FDelMenu.bitmap := EditToolBmps["删除"]; FDelMenu.bitmap := EditToolBmps["删除"];
FDelMenu.Caption := "删除"; FDelMenu.Caption := "删除";
@ -574,11 +574,11 @@ type TProjectView = class(TVCForm) //
FSetMainMenu.parent := nil; FSetMainMenu.parent := nil;
//FAddMenu.visible := false; //FAddMenu.visible := false;
end end
if(it.FType="tsl")and(it.FName <> FExecEntry)and(it.FPath()="")then {if(it.FType="tsl")and(it.FName <> FExecEntry)and(it.FPath()="")then
begin begin
FSetEntryMenu.parent := FTreePopUpMenu; FSetEntryMenu.parent := FTreePopUpMenu;
end else end else
FSetEntryMenu.parent := nil; FSetEntryMenu.parent := nil;}
if((it.FType="form")and(it.FName <> FMainForm))or(it.FType="tsl")and(it.FName <> FExecEntry)or(it.FType="tsf")or(it.FType="panel") {or((it.FType = "dir") and it.parent<>FTree.RootNode)}then if((it.FType="form")and(it.FName <> FMainForm))or(it.FType="tsl")and(it.FName <> FExecEntry)or(it.FType="tsf")or(it.FType="panel") {or((it.FType = "dir") and it.parent<>FTree.RootNode)}then
begin begin
FRenameMenu.parent := FTreePopUpMenu; FRenameMenu.parent := FTreePopUpMenu;
@ -1823,7 +1823,7 @@ end
FTreeTool; FTreeTool;
//设置主窗口 //设置主窗口
FSetMainMenu; FSetMainMenu;
FSetEntryMenu; //FSetEntryMenu;
//删除菜单 //删除菜单
FDelMenu; FDelMenu;
//******************** //********************

View File

@ -1282,10 +1282,6 @@ type TDFileWindow = class(TDVirutalWindow)
inherited; inherited;
BindComp := new TOpenFileADlg(self);; BindComp := new TOpenFileADlg(self);;
end end
function GetPublishEvents();override;
begin
return array();//array(1:nil);
end
function bitmapinfo();override; function bitmapinfo();override;
begin begin
return GetOpenFileBitmapInfo(); return GetOpenFileBitmapInfo();
@ -1301,10 +1297,6 @@ type TDFileSaveWindow = class(TDVirutalWindow)
inherited; inherited;
BindComp := new TSavefileADlg(self);; BindComp := new TSavefileADlg(self);;
end end
function GetPublishEvents();override;
begin
return array();//array(1:nil);
end
function bitmapinfo();override; function bitmapinfo();override;
begin begin
return GetSaveFileBitmapInfo(); return GetSaveFileBitmapInfo();
@ -1321,10 +1313,6 @@ type TDColorChooseWindow = class(TDVirutalWindow)
inherited; inherited;
BindComp := new TColorChooseADlg(self);; BindComp := new TColorChooseADlg(self);;
end end
function GetPublishEvents();override;
begin
return array();//array(1:nil);
end
function bitmapinfo();override; function bitmapinfo();override;
begin begin
return GetColorChooseBitmapInfo(); return GetColorChooseBitmapInfo();
@ -1340,10 +1328,6 @@ type TDFontChooseWindow = class(TDVirutalWindow)
inherited; inherited;
BindComp := new TFontChooseADlg(self);; BindComp := new TFontChooseADlg(self);;
end end
function GetPublishEvents();override;
begin
return array();//array(1:nil);
end
function bitmapinfo();override; function bitmapinfo();override;
begin begin
return GetFontChooseBitmapInfo(); return GetFontChooseBitmapInfo();
@ -1359,10 +1343,6 @@ type TDFolderChooseWindow = class(TDVirutalWindow)
inherited; inherited;
BindComp := new TFolderChooseADlg(self);; BindComp := new TFolderChooseADlg(self);;
end end
function GetPublishEvents();override;
begin
return array();//array(1:nil);
end
function bitmapinfo();override; function bitmapinfo();override;
begin begin
return GetFolderChooseBitmapInfo(); return GetFolderChooseBitmapInfo();
@ -3050,10 +3030,6 @@ type TDMessageboxWindow = class(TDVirutalWindow)
inherited; inherited;
BindComp := new TMessageboxADlg(self);; BindComp := new TMessageboxADlg(self);;
end end
function GetPublishEvents();override;
begin
return array();//array(1:nil);
end
function bitmapinfo();override; function bitmapinfo();override;
begin begin
return GetMessageBoxBitmapInfo(); return GetMessageBoxBitmapInfo();

View File

@ -70,19 +70,13 @@ uses utslvclauxiliary,UVCPropertyTypesPersistence,utslvclbase;
begin begin
r union=static call(thisfunction,findclass(v,o))name v+"&&_&&"; r union=static call(thisfunction,findclass(v,o))name v+"&&_&&";
end end
for i,v in t["properties"] do ///////////////////////subs/////////////////////////////////////////////
for i,v in t["subs"] do
begin begin
n := v["name"]; n := v["name"];
if((v["access"]in array(2,3))or(not(v["read"])))or not(v["type"])then
begin
deleteindex(r,n); deleteindex(r,n);
continue;
end
if v["read"]and v["type"]then
begin
r union=array(n:v[array("name","type","write","parser")]);
end
end end
/////////////////////////menbers//////////////////////////////////////////////
for i,v in t["members"] do for i,v in t["members"] do
begin begin
n := v["name"]; n := v["name"];
@ -91,10 +85,26 @@ uses utslvclauxiliary,UVCPropertyTypesPersistence,utslvclbase;
deleteindex(r,n); deleteindex(r,n);
continue; continue;
end end
tr := v[array("name","type","write","parser")]; tr := v[array("name","type","write")]; //,"parser"
tr["write"]:= true; tr["write"]:= true;
r union=array(n:tr); r union=array(n:tr);
end end
///////////////property/////////////////////////////////////
for i,v in t["properties"] do
begin
n := v["name"];
access := v["access"];
if((access in array(2,3))or(not(v["read"])))or not(v["type"])then
begin
deleteindex(r,n);
continue;
end
if v["read"]and v["type"]then
begin
r union=array(n:v[array("name","type","write","access")]);//,"parser"
end
end
GetClassDigestB(idx,r); GetClassDigestB(idx,r);
return r; return r;
end end
@ -472,7 +482,7 @@ public //
FChangedinheritedProperties; FChangedinheritedProperties;
FChangedProperties; FChangedProperties;
FVariableProperties; FVariableProperties;
function GetPublishInfo();//属性获取 {function GetPublishInfo();//属性获取
begin begin
r := publishs(); r := publishs();
rr := array(); rr := array();
@ -482,8 +492,8 @@ public //
if ifstring(v) then rr[ri++] := lowercase(v); if ifstring(v) then rr[ri++] := lowercase(v);
end end
return rr; return rr;
end end }
function OrderPublish(r,od); //排序发布的东西 {function OrderPublish(r,od); //排序发布的东西
begin begin
if od then if od then
begin begin
@ -495,12 +505,8 @@ public //
end end
r := r1; r := r1;
end end
end end}
public //设计器属性设置相关 public //设计器属性设置相关
function publishs();virtual;//释放属性
begin
//return array("currentcolor","lazyitems","range","firstdayofweek","align","mbbtnstyle","textalign","text","imagelist","canvs","images","items","bkbitmap","icon","popupmenu","mainmenu","cursor","height","width","left","top","enabled","visible","caption","color","font","onclick","rootfolder","initialdir");
end
function GetPublishproperties();virtual; //获得属性信息 function GetPublishproperties();virtual; //获得属性信息
begin begin
{** {**
@ -508,16 +514,17 @@ public //
**} **}
ps := GetPropInfo(); ps := GetPropInfo();
r := array(); r := array();
pps := GetPublishInfo(); //pps := GetPublishInfo();
for i,v in ps do for i,v in ps do
begin begin
typ := v["type"]; typ := v["type"];
if v["access"]<>4 then continue;
if typ="eventhandler" then continue; if typ="eventhandler" then continue;
otype :=GetComponentPropertyType(typ);// GetPropertyType(typ); otype :=GetComponentPropertyType(typ);// GetPropertyType(typ);
if otype then if otype then
begin begin
n := v["name"]; n := v["name"];
if pps and not(n in pps)then continue; //if pps and not(n in pps)then continue;
if typ in array("variable","popupmenu","syscursor","tmainmenu")then if typ in array("variable","popupmenu","syscursor","tmainmenu")then
begin begin
r[n]:= otype.FormatEdit(FVariableProperties[n],v["write"]?true:false); r[n]:= otype.FormatEdit(FVariableProperties[n],v["write"]?true:false);
@ -527,7 +534,7 @@ public //
end end
//次序处理 //次序处理
//////////////////// ////////////////////
OrderPublish(r,pps); //OrderPublish(r,pps);
//////////////////// ////////////////////
return r; return r;
end end
@ -539,7 +546,7 @@ public //
**} **}
ps := GetPropInfo(); ps := GetPropInfo();
r := array(); r := array();
pps := GetPublishInfo(); //pps := GetPublishInfo();
for i,v in ps do for i,v in ps do
begin begin
typ := v["type"]; typ := v["type"];
@ -548,12 +555,12 @@ public //
if otype then if otype then
begin begin
n := v["name"]; n := v["name"];
if pps and not(n in pps)then continue; //if pps and not(n in pps)then continue;
ne := FEventsProperties[n]; ne := FEventsProperties[n];
r[n]:= otype.FormatEdit(ne,v["write"]?true:false); r[n]:= otype.FormatEdit(ne,v["write"]?true:false);
end end
end end
OrderPublish(r,pps); //OrderPublish(r,pps);
return r; return r;
end end
function GetChangedPropertiesn(n);virtual;//获得改变的属性 function GetChangedPropertiesn(n);virtual;//获得改变的属性
@ -657,6 +664,7 @@ public //
end end
end end
end end
published
property Owner:tcomponent read FOwner; //所有者 property Owner:tcomponent read FOwner; //所有者
{** {**
@param(Owner)(tcomponent) 所有者 %% @param(Owner)(tcomponent) 所有者 %%

View File

@ -566,6 +566,7 @@ type tcontrol = class(tcomponent)
//procedure UpdateMouseCursor(X, Y: integer); begin end //procedure UpdateMouseCursor(X, Y: integer); begin end
procedure ChangeBounds(ALeft,ATop,AWidth,AHeight:integer;KeepBase:boolean);virtual; //边界改变 procedure ChangeBounds(ALeft,ATop,AWidth,AHeight:integer;KeepBase:boolean);virtual; //边界改变
begin begin
if ALeft=-32000 or ATop = -32000 then exit ;
SizeChanged :=(FWidth <> AWidth)or(FHeight <> AHeight); SizeChanged :=(FWidth <> AWidth)or(FHeight <> AHeight);
PosChanged :=(FLeft <> ALeft)or(FTop <> ATop); PosChanged :=(FLeft <> ALeft)or(FTop <> ATop);
if(not SizeChanged)and(not PosChanged)then Exit; if(not SizeChanged)and(not PosChanged)then Exit;
@ -573,7 +574,7 @@ type tcontrol = class(tcomponent)
d := new tvclwindowpos_class(0); d := new tvclwindowpos_class(0);
if SizeChanged then if SizeChanged then
begin begin
if AWidth=-3200 or AHeight = -3200 then exit ;
d.cx := AWidth; d.cx := AWidth;
d.cy := AHeight; d.cy := AHeight;
D.flags := SWP_NOMOVE; D.flags := SWP_NOMOVE;
@ -1283,6 +1284,10 @@ type tcontrol = class(tcomponent)
rchange := 0; rchange := 0;
d := new tvclwindowpos_class(TheMessage.lparam); d := new tvclwindowpos_class(TheMessage.lparam);
flags := d.flags; flags := d.flags;
//if flags .& SWP_HIDEWINDOW then return ;
//if flags .& SWP_SHOWWINDOW then return ;
if d.x=-32000 then return ;
if d.y=-32000 then return ;
if not((flags .& SWP_NOMOVE)=SWP_NOMOVE)then if not((flags .& SWP_NOMOVE)=SWP_NOMOVE)then
begin begin
x := d.x; x := d.x;
@ -1407,11 +1412,6 @@ type tcontrol = class(tcomponent)
Parent.AdjustSize(); // Parent.AdjustSize(); //
end end
end } end }
public
// standard properties, which should be supported by all descendants
property Action:taction read GetAction write SetAction;
property Anchors:anchors read FAnchors write SetAnchors;
property Align:align read FAlign write SetAlign;
protected protected
property UnAlignBounds read GetUnAlignBounds write SetUnAlignBounds; property UnAlignBounds read GetUnAlignBounds write SetUnAlignBounds;
{** {**
@ -1420,7 +1420,11 @@ type tcontrol = class(tcomponent)
@param(Align)(member of TAlign ) 默认 alNone 对齐方式 %% @param(Align)(member of TAlign ) 默认 alNone 对齐方式 %%
@param(Anchors)( array of TAnchorKind member) 锚定位置 ,默认 array(akTop,akLeft) %% @param(Anchors)( array of TAnchorKind member) 锚定位置 ,默认 array(akTop,akLeft) %%
**} **}
public published
// standard properties, which should be supported by all descendants
property Action:taction read GetAction write SetAction;
property Anchors:anchors read FAnchors write SetAnchors;
property Align:align read FAlign write SetAlign;
property ParentFont:bool read FParentFont write SetParentFont; property ParentFont:bool read FParentFont write SetParentFont;
property Parentcolor:bool read FParentcolor write SetParentcolor; property Parentcolor:bool read FParentcolor write SetParentcolor;
property Caption:string read GetText write SetText ; property Caption:string read GetText write SetText ;

View File

@ -336,14 +336,6 @@ type TLabel = class(TcustomLabel)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","action","align","anchors","caption","enabled","font","border",
"popupmenu","visible","textalign",
"height","width","left","top","color","bkbitmap","parentcolor","parentfont","transparent",
"onpopupmenu","onmousedown","onmouseup","onnotification");
end
{** {**
@param(TextAlign)(member of TAlignStyle9) 文字对齐 %% @param(TextAlign)(member of TAlignStyle9) 文字对齐 %%
**} **}
@ -525,22 +517,6 @@ type TPanel=class(TScrollingWinControl) //
inherited; inherited;
drawdesigninggrid(); drawdesigninggrid();
end end
function publishs();override;
begin
return array("name","align","anchors","caption","enabled","cursor","font",
"popupmenu","visible",
"height","width","left","top","border",
"zorder","color","bkbitmap","parentcolor","parentfont",
//"minwidth","minheight",
"wspopup","wsdlgmodalframe","wscaption","wssizebox","wssysmenu",
"autoscroll",
"onmousewheel","onsize","onmove","onmousemove","onpopupmenu",
"onmousedown","onmouseup",
"onactivate","onclose",
"onsetfocus","onkillfocus",
"onkeyup","onkeydown","onkeypress","onnotification"
);
end
end end
//托盘 //托盘
type TTray=class(TComponent) type TTray=class(TComponent)
@ -708,10 +684,7 @@ type TTray=class(TComponent)
FHaveadd := false; FHaveadd := false;
end end
end end
function publishs();override; published
begin
return array("name","caption","icon","popupmenu","onclick","onnotification");
end
property Form read FForm write SetForm; property Form read FForm write SetForm;
property Caption:string read FCaption write SetCaption; property Caption:string read FCaption write SetCaption;
property OnClick:eventhandler read FOnclick write FOnclick; property OnClick:eventhandler read FOnclick write FOnclick;
@ -1063,6 +1036,7 @@ type TVCForm = class(TScrollingWinControl)
end; end;
inherited; inherited;
end; end;
published
property OnMinimize:eventhandler read FOnMinimize write FOnMinimize; property OnMinimize:eventhandler read FOnMinimize write FOnMinimize;
property MainMenu:tmainmenu read FMainMenu write SetMainMenu; property MainMenu:tmainmenu read FMainMenu write SetMainMenu;
property minmaxbox:bool read FMaxminbox write SetMaxMinBox; property minmaxbox:bool read FMaxminbox write SetMaxMinBox;
@ -1073,24 +1047,6 @@ type TVCForm = class(TScrollingWinControl)
property BorderStyle:TFormBorderStyle read FFormBorderStyle write SetFormBorderStyle; property BorderStyle:TFormBorderStyle read FFormBorderStyle write SetFormBorderStyle;
property FormIcon:ticon read GetFormIcon write SetFormIcon; property FormIcon:ticon read GetFormIcon write SetFormIcon;
property Tray:ttray READ FTray write SetTray; property Tray:ttray READ FTray write SetTray;
function publishs();override;
begin
return array(
"name","action","caption","cursor","font",
"popupmenu","visible",
"height","width","left","top",
"color","bkbitmap","parentcolor","parentfont",
//"minwidth","minheight",
"wssizebox","wsdlgmodalframe",
"mainmenu","minmaxbox","formicon","tray",
"onsize","onmove","onmousemove",
"onmousedown","onmouseup",
"onactivate","onclose",
"onsetfocus","onkillfocus","onpopupmenu",
"onkeyup","onkeydown","onkeypress","onnotification"
);
end
end end
type tform=class(TVCForm) type tform=class(TVCForm)
{** {**
@ -1163,13 +1119,6 @@ type TDCreateForm=class(TVCForm) //
inherited; inherited;
Loader.LoadFromTfm(self(true)); Loader.LoadFromTfm(self(true));
end 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) //设计器的面板
@ -1182,14 +1131,6 @@ type TDCreatePanel=class(TpanelForm) //
inherited; inherited;
Loader.LoadFromTfm(self(true)); Loader.LoadFromTfm(self(true));
end end
function publishs();override;
begin
r := inherited;
r[length(r)] := "oncreated";
r[length(r)] := "ondestroy";
return r;
end
end end
//按钮 //按钮
@ -1201,13 +1142,6 @@ type tbtn = class(tcustombtn) //
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","action","left","top","width","height",
"align","anchors","caption","font","enabled","visible","bkbitmap","color","parentcolor","parentfont","tabstop","wsdlgmodalframe",
"onclick","onmousemove","onsetfocus","onkillfocus","onkeyup","onkeydown","onkeypress","onnotification");
end
end end
type tcheckbtn = class(tcustomcheckbtn) //复选框 type tcheckbtn = class(tcustomcheckbtn) //复选框
{** {**
@ -1217,12 +1151,6 @@ type tcheckbtn = class(tcustomcheckbtn) //
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","left","top","width","height",
"caption","anchors","enabled","color","visible","font","parentcolor","parentfont",
"textpos","checked","lefttext","tabstop","onclick","onmousemove","onmousedown","onmouseup","onnotification");
end
end end
type tradiobtn = class(tcustomradiobtn) //单选框 type tradiobtn = class(tcustomradiobtn) //单选框
@ -1233,13 +1161,6 @@ type tradiobtn = class(tcustomradiobtn) //
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","left","top","width","height",
"caption","anchors","enabled","color","visible","font","parentcolor","parentfont",
"textpos","checked","lefttext","tabstop","onclick","onmousemove","onmousedown","onmouseup","onnotification");
end
end end
type TPopMenuBtn=class(TBtn) type TPopMenuBtn=class(TBtn)
@ -1326,12 +1247,6 @@ type tedit = class(tcustomedit) //
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","align","anchors","border","font","color","enabled","parentcolor","parentfont","popupmenu","visible","height","width","left","top","text","placeholder"
,"readonly","limitlength","linewrap","tabstop","onmousemove","onpopupmenu","onmousedown","onmouseup","onkeyup"
,"onkeydown","onkeypress","onmaxtext","onkillfocus","onsetfocus","onchange","onnotification");
end
end end
type tpassword = class(tcustompassword) //密码框 type tpassword = class(tcustompassword) //密码框
{** {**
@ -1341,18 +1256,6 @@ type tpassword = class(tcustompassword) //
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name",
"align","anchors","font","color","parentcolor","parentfont",
"popupmenu","visible",
"height","width","left","top",
"text","placeholder","readonly","limitlength","tabstop",
"passwordchar","onmousemove","onpopupmenu",
"onmousedown","onmouseup",
"onkeyup","onkeydown","onkeypress",
"onmaxtext","onkillfocus","onsetfocus","onchange","onnotification");
end
end end
type tmemo = class(TSynMemoNorm) //多行文本框 type tmemo = class(TSynMemoNorm) //多行文本框
@ -1406,7 +1309,7 @@ type tmemo = class(TSynMemoNorm) //
FonSetFocus := nil; FonSetFocus := nil;
FonKillFocus := nil; FonKillFocus := nil;
end end
public published
property onupdate read Fonchange write Fonchange; property onupdate read Fonchange write Fonchange;
property onchange read Fonchange write Fonchange; property onchange read Fonchange write Fonchange;
property LineWrap read FLineWrap write FLineWrap; property LineWrap read FLineWrap write FLineWrap;
@ -1416,17 +1319,6 @@ type tmemo = class(TSynMemoNorm) //
@param(onupdate)(fpointer)文本更新回调%% @param(onupdate)(fpointer)文本更新回调%%
@param(onchange)(fpointer)文本改变回调%% @param(onchange)(fpointer)文本改变回调%%
**} **}
function publishs();override;
begin
return array("name","font","color","parentcolor","parentfont",
"popupmenu","visible","anchors","align",
"height","width","left","top",
"text","readonly","selectbkcolor","guttercolor","currentlinecolor","guttercharcnt","autogutterwidth",
"tabspace","highlighter","onmousewheel","onmousemove","onpopupmenu",
"onmousedown","onmouseup","onsetfocus","onkillfocus",
"onkeyup","onkeydown","onkeypress",
"onchange","onnotification");
end
private private
Fonchange; Fonchange;
FLineWrap; FLineWrap;
@ -1440,10 +1332,6 @@ type thighlighter= class(tcustomsynhighlighter) //
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","keywordcolor","symcolor","stringcolor","annotationcolor","ignorecase","onnotification");
end
end end
//goupbox //goupbox
@ -1455,12 +1343,6 @@ type tgroupbox = class(tcustomgroupbox)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","left","top","width","height",
"align","anchors","border","caption","color","enabled","font","visible","textpos","parentcolor","parentfont","wsdlgmodalframe",
"onsize","onnotification");
end
end end
type TCheckGroupBox=class(TRadioGroupBox) type TCheckGroupBox=class(TRadioGroupBox)
@ -1530,14 +1412,8 @@ type TCheckGroupBox=class(TRadioGroupBox)
InvalidateSubItem(idx,true); InvalidateSubItem(idx,true);
CallMessgeFunction(OnSelectionChanged,self,e); CallMessgeFunction(OnSelectionChanged,self,e);
end end
published
property ItemIndexs:integers read GetItemIndexs write SetItemIndexs; property ItemIndexs:integers read GetItemIndexs write SetItemIndexs;
function publishs();override;
begin
return array("name","left","top","width","height",
"align","border","ItemIndexs","caption","color","enabled","font",
//"minheight","minwidth",
"parentfont","parentfont","visible","textpos","wsdlgmodalframe","onnotification");
end
end end
type TRadioGroupBox=class(TGroupbox) type TRadioGroupBox=class(TGroupbox)
@ -1804,20 +1680,13 @@ type TRadioGroupBox=class(TGroupbox)
Items := nits; Items := nits;
end end
end end
published
property OnSelectionChanged:eventhandler read FSelectionChanged write FSelectionChanged; property OnSelectionChanged:eventhandler read FSelectionChanged write FSelectionChanged;
property Columns:integer read FColumns write SetColumns; property Columns:integer read FColumns write SetColumns;
property ItemIndex:integer read FItemIndex write SetItemIndex; property ItemIndex:integer read FItemIndex write SetItemIndex;
property Items:strings read FItems write SetItems; property Items:strings read FItems write SetItems;
property Selected read GetSelected; property Selected read GetSelected;
property ColumnLayout:SplitterType read FColumnLayout write SetColumnLayout; property ColumnLayout:SplitterType read FColumnLayout write SetColumnLayout;
function publishs();override;
begin
r := array("name","left","top","width","height",
"align","border","ItemIndexs","caption","color","enabled","font",
//"minheight","minwidth",
"parentfont","parentcolor","visible","textpos","wsdlgmodalframe","onselectionchanged","onnotification");
return r;
end
{** {**
@param(OnSelectionChanged)(function[TRadioGroupBox,tuieventbase]) 选择改变时回调 %% @param(OnSelectionChanged)(function[TRadioGroupBox,tuieventbase]) 选择改变时回调 %%
@param(Columns)(integer) 列数 %% @param(Columns)(integer) 列数 %%
@ -1836,17 +1705,6 @@ type TListBox = class(TcustomListBox)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","caption","anchors","align","enabled",
"font","visible","border","color",
"height","width","left","top",
"itemheight","items","itemindex","selbkcolor",
"multisel","checkbox","ownerdraw","itemcount","popupmenu","wsdlgmodalframe",
"onpopupmenu","onmousedown","onmouseup","ondrawlist",
"onselchanged","onnotification"
);
end
end end
type TColorbox=class(TcustomListBox) type TColorbox=class(TcustomListBox)
@ -1964,16 +1822,7 @@ type TColorbox=class(TcustomListBox)
rc[1]+= 2; rc[1]+= 2;
cvs.drawtext(getColorName(idx),rc,DT_NOPREFIX); cvs.drawtext(getColorName(idx),rc,DT_NOPREFIX);
end end
function publishs();override; published
begin
return array("name","align","anchors","font","color",
"visible","border","enabled",
"height","width","left","top",
"wsdlgmodalframe","popupmenu","parentcolor","parentfont",
"onpopupmenu","onmousedown","onmouseup",
"onselchanged","onnotification"
);
end
property customcolor:color read fcustomcolor write setcustomcolor; property customcolor:color read fcustomcolor write setcustomcolor;
private private
function setcustomcolor(cl); function setcustomcolor(cl);
@ -2109,14 +1958,7 @@ type TColorCombobox=class(TCustomComboBoxbase)
end end
return inherited; return inherited;
end end
function publishs();override; published
begin
return array("name","anchors","font","color",
"visible","parentcolor","parentfont",
"height","width","left","top",
"readonly","itemindex",
"onselchanged","ondropdown","oncloseup","onnotification");
end
property customcolor:Color read getcustomcolor write setcustomcolor; property customcolor:Color read getcustomcolor write setcustomcolor;
private private
function getcustomcolor(); function getcustomcolor();
@ -2145,20 +1987,8 @@ type TComboBox = class(TcustomComboBox)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","font","border","font","color",
"visible","anchors","align","enabled","parentcolor","parentfont",
"height","width","left","top",
"readonly","items",
"checkbox","multisel",
"itemindex","dropdowncount","oncloseup","ondropdown","onselchanged","oneditchanged","onnotification");
end
end end
type TToolButton = class(TcustomToolButton) type TToolButton = class(TcustomToolButton)
{** {**
@explan(说明) 工具栏项 %% @explan(说明) 工具栏项 %%
@ -2167,10 +1997,6 @@ type TToolButton = class(TcustomToolButton)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","action","caption","enabled","stylesep","imageid","visible","onclick","popupmenu","onnotification");
end
end end
type TToolBar = class( TcustomToolBar) type TToolBar = class( TcustomToolBar)
@ -2181,18 +2007,6 @@ type TToolBar = class( TcustomToolBar)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","align","caption","enabled","font","left","top","width","height",
"visible","imagelist","mainmenu","onnotification");
if Align <> alNone then
begin
return array("name","align","caption","enabled","font",
"visible","imagelist");
end else
return array("name","align","caption","enabled","font","left","top","width","height",
"visible","imagelist");
end
end end
type TStatusBar = class(TcustomStatusBar) type TStatusBar = class(TcustomStatusBar)
{** {**
@ -2202,11 +2016,6 @@ type TStatusBar = class(TcustomStatusBar)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","caption","enabled","border",
"font","visible","items","itemorder","onmousemove","onmousedown","onmouseup","onnotification");
end
end end
type tcoolbar = class(tcustomcoolbar) type tcoolbar = class(tcustomcoolbar)
{** {**
@ -2216,10 +2025,6 @@ type tcoolbar = class(tcustomcoolbar)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","enabled","caption","autosize","align","border","wsdlgmodalframe","font","color","dragbtncolor","visible","arrange","onnotification");
end
end end
type tsplitter = class(tcustomsplitter) type tsplitter = class(tcustomsplitter)
{** {**
@ -2229,10 +2034,6 @@ type tsplitter = class(tcustomsplitter)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","enabled","border","left","top","width","height","color","parentcolor","transparent","visible","align","onnotification");
end
end end
//树控件 //树控件
@ -2586,15 +2387,9 @@ type TTreeView=class(TTreeCtl)
RootItem.RecyclingChildren(); RootItem.RecyclingChildren();
EndUpDate(); EndUpDate();
end end
published
property RootItem read GetRootNode; property RootItem read GetRootNode;
property LazyItems:TreeData read GetLazyItems Write SetLazyItems; property LazyItems:TreeData read GetLazyItems Write SetLazyItems;
function publishs();override;
begin
return array("name",
"left","top","width","height","caption","align","anchors",
"checkbox","visible","itemheght","imagelist","hasline","singleexpand","color","font","parentcolor","parentfont",
"lazyitems","onselchanged","onmousedown","onsetfocus","onkillfocus","onkeyup","onkeydown","onnotification");
end
//property OnDeleteItem read FOnDeleteItem write FOnDeleteItem; //property OnDeleteItem read FOnDeleteItem write FOnDeleteItem;
//property OnItemExpand:eventhandler read FOnItemExpand write FOnItemExpand; //property OnItemExpand:eventhandler read FOnItemExpand write FOnItemExpand;
{** {**
@ -2611,10 +2406,6 @@ type TTabSheet = class(tcustomtabsheet)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","caption","font","color","border","parentcolor","parentfont","wsdlgmodalframe","onsize","onnotification");
end
end end
type tpagecontrol = class(tcustompagecontrol) type tpagecontrol = class(tcustompagecontrol)
{** {**
@ -2624,12 +2415,6 @@ type tpagecontrol = class(tcustompagecontrol)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","left","top","width","height",
"align","anchors","color","font","parentcolor","parentfont","border","caption","popupmenu","enabled","visible","cursel","cursor",
"wsdlgmodalframe","wssizebox","onpopupmenu","onselchange","onnotification");
end
end end
//二分控件 //二分控件
type TPairSplitterSide=class(TCustomControl) type TPairSplitterSide=class(TCustomControl)
@ -2659,10 +2444,6 @@ type TPairSplitterSide=class(TCustomControl)
cursor := OCR_NORMAL; cursor := OCR_NORMAL;
border := true; border := true;
end end
function publishs();override;
begin
return array("name","border","caption","color","font","parentcolor","parentfont","popupmenu","bkbitmap","wsdlgmodalframe","onpopupmenu","onsize","onnotification");
end
end end
type TPairSplitter=class(tcustomcontrol) // type TPairSplitter=class(tcustomcontrol) //
{** {**
@ -2953,14 +2734,9 @@ type TPairSplitter=class(tcustomcontrol) //
FSides := nil; FSides := nil;
inherited; inherited;
end end
published
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;
begin
return array("name","left","top","width","height",
"align","anchors","border","color","font","caption","enabled","visible","parentcolor","parentfont","splittertype","position",
"wsdlgmodalframe","wscaption","wspopup","wssizebox","wssysmenu","onnotification");
end
{** {**
@param(Position)(integer) 分割线位置 %% @param(Position)(integer) 分割线位置 %%
@param(SplitterType)(menuber of TPairSplitterType) 分割线位置 %% @param(SplitterType)(menuber of TPairSplitterType) 分割线位置 %%
@ -3003,15 +2779,6 @@ type TGridCtl = class(TcustomGridCtl)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","height","width","left","top","border","anchors","align","font","color","parentcolor","parentfont",
"autoscroll","columncount","itemcount",
"itemheight","variablerows","mousesizecell","fixedrows","fixedcolumns","mergeinfo",
"ondrawcell","onhitcellsizer","onmousewheel","onmousemove",
"onmousedown","onmouseup","ondblclick",
"onkeyup","onkeydown","onkeypress","onnotification");
end
end end
type TGRidBase = class(TGridCtl) type TGRidBase = class(TGridCtl)
@ -3357,6 +3124,7 @@ type TGRidBase = class(TGridCtl)
//click //click
//LVN_COLUMNCLICK //LVN_COLUMNCLICK
end end
published
property GridLine:bool read FGridLine write SetGridLine; property GridLine:bool read FGridLine write SetGridLine;
property ColumnHeader:bool read FColumHeader write SetColumHeader; property ColumnHeader:bool read FColumHeader write SetColumHeader;
property ItemCount:integer read GetItemCount write SetItemCount; property ItemCount:integer read GetItemCount write SetItemCount;
@ -3392,6 +3160,7 @@ type TDrawGrid=class(TGRidBase)
FOnDoDrawSubItem := nil; FOnDoDrawSubItem := nil;
inherited; inherited;
end end
published
property OnDoDrawSubItem read FOnDoDrawSubItem write FOnDoDrawSubItem; property OnDoDrawSubItem read FOnDoDrawSubItem write FOnDoDrawSubItem;
{** {**
@param(OnDoDrawSubItem)(function[tdrawgrid,TGRIDMDRAWITEM]) 子项绘制 %% @param(OnDoDrawSubItem)(function[tdrawgrid,TGRIDMDRAWITEM]) 子项绘制 %%
@ -3990,6 +3759,7 @@ type TListView = class(TDrawGrid)
//calldatafunction(SelectedChanged,self(true)); //calldatafunction(SelectedChanged,self(true));
end end
end end
published
property SelectedChanged read FSelectedChanged write FSelectedChanged; property SelectedChanged read FSelectedChanged write FSelectedChanged;
property OnSelChanged:eventhandler read FSelectedChanged write FSelectedChanged; property OnSelChanged:eventhandler read FSelectedChanged write FSelectedChanged;
property List read FList; property List read FList;
@ -4002,17 +3772,6 @@ type TListView = class(TDrawGrid)
property ListValues read GetListValues; property ListValues read GetListValues;
property OnCheckItem:eventhandler read FOnCheckItem write FOnCheckItem; property OnCheckItem:eventhandler read FOnCheckItem write FOnCheckItem;
property NumberAlign read FIntAlign write SetIntAlign; property NumberAlign read FIntAlign write SetIntAlign;
function publishs();override;
begin
return array("name","height","width","left","top","border","anchors","align","font","color","parentcolor","parentfont",
"autoscroll","itemheight","columns","columncount","itemcount","mousesizecell",
"fixedrows","fixedcolumns",
"gridline","columnheader",
"selectedid","selbkcolor","mouseonbkcolor",
"onmousewheel","onmousemove",
"onmousedown","onmouseup","ondblclick",
"onkeyup","onkeydown","onkeypress","oncolumnclick","oncheckitem","onnotification");
end
{** {**
@param(SelectedId)(integer) 当前选中的序号,<0表示没有选中项 %% @param(SelectedId)(integer) 当前选中的序号,<0表示没有选中项 %%
@param(PrevSelectedId)(integer) 选择切换前面的选中id %% @param(PrevSelectedId)(integer) 选择切换前面的选中id %%
@ -4042,16 +3801,6 @@ type tprogressbar = class(tcustomprogressbar)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","border",
"align","anchors",
"popupmenu","color","visible","enabled","parnetcolor",
"height","width","left","top",
"vertical","smooth","range","position","barcolor","onmousemove","onpopupmenu",
"onmousedown","onmouseup","onnotification");
end
end end
type tmonthcalendar = class(TCustomControl) type tmonthcalendar = class(TCustomControl)
{** {**
@ -4152,17 +3901,11 @@ type tmonthcalendar = class(TCustomControl)
FonSelect := nil; FonSelect := nil;
FonSelectChange := nil; FonSelectChange := nil;
end end
published
property onSelectChange read FonSelectChange write FonSelectChange; property onSelectChange read FonSelectChange write FonSelectChange;
property TodayButton:bool read getnoTodayButton write setNoTodayButton; property TodayButton:bool read getnoTodayButton write setNoTodayButton;
property onSelect:eventhandler read FonSelect write FonSelect; property onSelect:eventhandler read FonSelect write FonSelect;
property onSelChanged:eventhandler read FonSelectChange write FonSelectChange; property onSelChanged:eventhandler read FonSelectChange write FonSelectChange;
function publishs();override;
begin
return array("name","caption","anchors","enabled","color",
"popupmenu","visible","parentcolor",
"height","width","left","top","border","onmousemove","onpopupmenu",
"onmousedown","onmouseup","onselchanged");
end
{** {**
@param(todayButton)(bool)月历显示“今日”按钮(默认开启)%% @param(todayButton)(bool)月历显示“今日”按钮(默认开启)%%
@param(onselchanged)(function[tmonthcalendar,tuieventbase])选择日期改变%% @param(onselchanged)(function[tmonthcalendar,tuieventbase])选择日期改变%%
@ -4345,13 +4088,7 @@ type tdatetimepicker = class(tthreeEntry)
FCalender := nil; FCalender := nil;
Fonselectchange := nil; Fonselectchange := nil;
end end
function publishs();override; published
begin
return array("name","caption","anchors","enabled","font","color",
"popupmenu","visible","parentcolor","parentfont",
"height","width","left","top","border","onmousemove","onpopupmenu",
"onmousedown","onmouseup","onselchanged","onnotification");
end
property onselectchange:eventhandler read Fonselectchange write Fonselectchange; property onselectchange:eventhandler read Fonselectchange write Fonselectchange;
property onselchanged:eventhandler read Fonselectchange write Fonselectchange; property onselchanged:eventhandler read Fonselectchange write Fonselectchange;
{ {
@ -4513,13 +4250,7 @@ type ttimepicker = class(tthreeEntry)
begin begin
inherited; inherited;
end end
function publishs();override; published
begin
return array("name","align","anchors","caption","enabled","font","color",
"popupmenu","visible","parentcolor","parentfont",
"height","width","left","top","border","onmousemove","onpopupmenu",
"onmousedown","onmouseup","onkeyup","onkeydown","onselchanged","onnotification");
end
property onselectchange read Fonselectchange write Fonselectchange; property onselectchange read Fonselectchange write Fonselectchange;
property onselchanged:eventhandler read Fonselectchange write Fonselectchange; property onselchanged:eventhandler read Fonselectchange write Fonselectchange;
{ {
@ -4554,11 +4285,6 @@ type tipaddr = class(tcustomipaddr)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","align","anchors","font","color","caption","visible","parentcolor","parentfont","height","width","left","top",
"ipaddr","hasport","onaddrchanged","border","wsdlgmodalframe","onnotification");
end
end end
type TSpinEdit=class(TCustomSpinEdit) type TSpinEdit=class(TCustomSpinEdit)
@ -4570,12 +4296,6 @@ type TSpinEdit=class(TCustomSpinEdit)
inherited; inherited;
//border := true; //border := true;
end end
function publishs();override;
begin
return array("name","left","top","anchors","width","height",
"border","enabled","visible",
"increment","minvalue","maxvalue","value","wsdlgmodalframe","onincrease","ondecrease","onnotification");
end
end end
type tapplicationwindow=class(TWinControl) type tapplicationwindow=class(TWinControl)
@ -4737,6 +4457,7 @@ type TDragImageList=class(TCustomImageList)
procedure HideDragImage; procedure HideDragImage;
function SetDragImage(Index,HotSpotX,HotSpotY:Integer):Boolean; function SetDragImage(Index,HotSpotX,HotSpotY:Integer):Boolean;
//procedure ShowDragImage; //procedure ShowDragImage;
published
property DragCursor:TCursor read FDragCursor write SetDragCursor; property DragCursor:TCursor read FDragCursor write SetDragCursor;
property DragHotspot:TPoint read FDragHotspot write FDragHotspot; property DragHotspot:TPoint read FDragHotspot write FDragHotspot;
property Dragging:Boolean read FDragging; property Dragging:Boolean read FDragging;
@ -4804,10 +4525,6 @@ type TTimer = class(TCustomTimer)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","interval","ontimer","onnotification");
end
end end
//******action 相关***************************************** //******action 相关*****************************************
@ -4821,22 +4538,12 @@ type TAction=class(TCustomAction)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
r := array("name","caption","enabled","shortcut","onexecute","onnotification");
return r;
end
end end
type tactionlist =class(TCustomactionlist) type tactionlist =class(TCustomactionlist)
function create(AOwner);override; function create(AOwner);override;
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","onnotification");
end
end end
@ -4849,11 +4556,6 @@ type TMessageboxADlg = class(TcustommsgADlg)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","chooseok","caption",
"mbtext","mbbtnstyle","mbiconstyle","onnotification");
end
end end
type TColorChooseADlg = class(tcustomcolordlg) type TColorChooseADlg = class(tcustomcolordlg)
{** {**
@ -4863,11 +4565,6 @@ type TColorChooseADlg = class(tcustomcolordlg)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","chooseok","caption",
"customcolors","result","onnotification");
end
end end
type TFontChooseADlg = class(tcustomfontdlg) type TFontChooseADlg = class(tcustomfontdlg)
{** {**
@ -4877,11 +4574,6 @@ type TFontChooseADlg = class(tcustomfontdlg)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
array("name","chooseok","caption","color","onnotification");
end
end end
type TSavefileADlg = class(tcustomfsdlg) type TSavefileADlg = class(tcustomfsdlg)
{** {**
@ -4892,11 +4584,6 @@ type TSavefileADlg = class(tcustomfsdlg)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","caption","filter","filterindex","filename","defaultfileextension",
"showhidden","multiselected","overwriteprompt","filemustexist","onnotification"); //"linkfilepath" "createprompt"
end
end end
type TOpenFileADlg=class(tcustomfsdlg) type TOpenFileADlg=class(tcustomfsdlg)
@ -4919,11 +4606,6 @@ type TOpenFileADlg=class(tcustomfsdlg)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","caption","filter","filterindex","filename",
"defaultfileextension","showhidden","multiselected","onnotification"); //,"linkfilepath"
end
end end
type TFolderChooseADlg = class(tcustomfolderdlg) type TFolderChooseADlg = class(tcustomfolderdlg)
{** {**
@ -4933,11 +4615,6 @@ type TFolderChooseADlg = class(tcustomfolderdlg)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","caption",
"defaultdir","rootfolder","folder","onnotification");
end
end end
//菜单 //菜单
@ -4949,11 +4626,6 @@ type TMenu = class(TcustomMenu)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("action","bitmap","caption","checked","enabled","name","tseparator",
"onclick","onrbuttonup","onselect","onnotification");
end
end end
type TPopupmenu=class(TcustomPopupmenu) type TPopupmenu=class(TcustomPopupmenu)
{** {**
@ -4963,10 +4635,6 @@ type TPopupmenu=class(TcustomPopupmenu)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","caption","enabled","onrbuttonup","onnotification");
end
end end
type TMainmenu = class(TcustomMainmenu) type TMainmenu = class(TcustomMainmenu)
{** {**
@ -4976,10 +4644,6 @@ type TMainmenu = class(TcustomMainmenu)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name");
end
end end
type TApplicationProperties=class(TComponent) type TApplicationProperties=class(TComponent)
@ -5004,6 +4668,7 @@ type TApplicationProperties=class(TComponent)
FApplication := getapplication(); FApplication := getapplication();
FTrayData := new TNOTIFYICONDATAA(); FTrayData := new TNOTIFYICONDATAA();
end end
published
property TrayMenu:tpopupmenu read FPopupMenu write SetPopupMenu; property TrayMenu:tpopupmenu read FPopupMenu write SetPopupMenu;
property TrayIcon:icondata read FTrayIcon write FTrayIcon; property TrayIcon:icondata read FTrayIcon write FTrayIcon;
property ShowTray:bool read FShowTray write SetShowTray; property ShowTray:bool read FShowTray write SetShowTray;
@ -5017,10 +4682,6 @@ type TClipBoard = class(TcustomClipBoard)
begin begin
inherited; inherited;
end end
function publishs();override;
begin
return array("name","text","bmp");
end
end end
//线程 //线程
@ -5583,15 +5244,12 @@ type TQuotations=class(tcomponent)
end end
return nil; return nil;
end end
published
property OnCallBack:eventhandler read FOncallBack write FOncallBack; property OnCallBack:eventhandler read FOncallBack write FOncallBack;
property Ids:strings read FIds write FIds; property Ids:strings read FIds write FIds;
property SUBs:strings read FSUbs write FSUbs; property SUBs:strings read FSUbs write FSUbs;
property GlobalVariable:tsldata read FGlobalVariable write FGlobalVariable; property GlobalVariable:tsldata read FGlobalVariable write FGlobalVariable;
property Script:text read FScript write FScript; property Script:text read FScript write FScript;
function publishs();override;
begin
return array("name","ids","subs","globalvariable","script","oncallback","onnotification");
end
{** {**
@param(OnCallBack)(function[TQuotations]) 执行回调 %% @param(OnCallBack)(function[TQuotations]) 执行回调 %%
@param(ids)(array of stockid) 证券代码数组 array("SZ000001","SZ000002") %% @param(ids)(array of stockid) 证券代码数组 array("SZ000001","SZ000002") %%
@ -5823,10 +5481,7 @@ type tlogincontrol=class(tpanel)
if CheckLogined()then return true; if CheckLogined()then return true;
else return false; else return false;
end end
function publishs();override; published
begin
return lowercase(array("name","port","ip","usrname","onlogined","onnotification"));
end
property Port:string read GetPort write SetPort; property Port:string read GetPort write SetPort;
property Ip:string read GetIp write SetIp; property Ip:string read GetIp write SetIp;
property UsrName:string read GetUsrName write SetUsrName; property UsrName:string read GetUsrName write SetUsrName;
@ -5983,15 +5638,7 @@ type Ttfm2Component = class(TTmfParser)
d := et.ReadTMF(td,owner); d := et.ReadTMF(td,owner);
if ifnil(d)then continue; if ifnil(d)then continue;
try try
pbs := obj.publishs();
if(n in pbs)then
begin
//echo "\r\n====",n,"****",d;
invoke(obj,n,1,d); invoke(obj,n,1,d);
end else
begin
//echo "pbs:",tostn(pbs);
end
except except
//echo obj.classinfo()["classname"],"错误 \r\n"; //echo obj.classinfo()["classname"],"错误 \r\n";
end; end;

View File

@ -535,6 +535,7 @@ type TWinControl = class(tcontrol)
end end
procedure ChangeBounds(ALeft,ATop,AWidth,AHeight:integer;KeepBase:boolean);override; //type_twinctrol procedure ChangeBounds(ALeft,ATop,AWidth,AHeight:integer;KeepBase:boolean);override; //type_twinctrol
begin begin
if ALeft=-32000 or ATop = -32000 then exit ;
if HandleAllocated()then if HandleAllocated()then
begin begin
//_wapi.MoveWindow(self.Handle,ALeft,ATop,AWidth,AHeight,true); //_wapi.MoveWindow(self.Handle,ALeft,ATop,AWidth,AHeight,true);
@ -2149,6 +2150,10 @@ type TWinControl = class(tcontrol)
begin begin
return FWMNCHITTEST.hitstyle2(self(true),x,y); return FWMNCHITTEST.hitstyle2(self(true),x,y);
end end
Procedure SetDesigning(Value,SetChildren);virtual; //ÉèÖÃÉè¼Æ×´Ì¬
begin
inherited;
end;
public //ÏûÏ¢·Ö·¢ public //ÏûÏ¢·Ö·¢
function MainWndProc(hwnd,message,wparam,lparam);virtual; //type_twinctrol function MainWndProc(hwnd,message,wparam,lparam);virtual; //type_twinctrol
begin begin

View File

@ -126,6 +126,7 @@ type TBasicAction=class(TComponent)
if FActionComponent is class(TComponent)then FActionComponent.FreeNotification(self); if FActionComponent is class(TComponent)then FActionComponent.FreeNotification(self);
end end
end end
published
property ActionComponent:TComponent read FActionComponent write SetActionComponent; property ActionComponent:TComponent read FActionComponent write SetActionComponent;
property onexecute:eventhandler read FOnExecute write SetOnExecute; property onexecute:eventhandler read FOnExecute write SetOnExecute;
property OnUpdate:TNotifyEvent read FOnUpdate write FOnUpdate; property OnUpdate:TNotifyEvent read FOnUpdate write FOnUpdate;
@ -276,11 +277,6 @@ type TCustomAction=class(TContainedAction)
property Enabled:bool read FEnabled write SetEnabled; property Enabled:bool read FEnabled write SetEnabled;
property Visible:bool read FVisible write SetVisible; property Visible:bool read FVisible write SetVisible;
property ShortCut:string read getshortcut write SetShortCut; property ShortCut:string read getshortcut write SetShortCut;
function publishs();override;
begin
r := array("name","caption","enabled","onexecute");
return r;
end
end; end;
type TCustomactionlist=class(TComponent) type TCustomactionlist=class(TComponent)
{** {**
@ -409,6 +405,7 @@ type TBasicActionLink=class(TSLUIBASE)
begin begin
if FAction is class(TBasicAction) then return FAction.Update(); if FAction is class(TBasicAction) then return FAction.Update();
end } end }
published
property Action:TBasicAction read FAction write SetAction; property Action:TBasicAction read FAction write SetAction;
property OnChange:TNotifyEvent read FOnChange write FOnChange; property OnChange:TNotifyEvent read FOnChange write FOnChange;
{** {**

View File

@ -245,9 +245,9 @@ type tcefowner = class(tcustomcontrol)
end end
end end
published published
property url read furl write seturl; property url:string read furl write seturl;
property oncandownload read FOncandownload write FOncandownload; property oncandownload:eventhandler read FOncandownload write FOncandownload;
property Ondownloadupdate read FOndownloadupdate write fOndownloadupdate; property Ondownloadupdate:eventhandler read FOndownloadupdate write fOndownloadupdate;
private private
function seturl(url); //ÉèÖÃurl function seturl(url); //ÉèÖÃurl
begin begin

View File

@ -277,6 +277,7 @@ type tcustomcoolbar=class(tcustomcontrol)
inherited; inherited;
FDRageimglist := nil; FDRageimglist := nil;
end end
published
property autosize:bool read fautosize write setautosize; property autosize:bool read fautosize write setautosize;
property arrange:lazystr read getarrange write setarrange; property arrange:lazystr read getarrange write setarrange;
property dragbtncolor:color read fdragbtncolor write fdragbtncolor; property dragbtncolor:color read fdragbtncolor write fdragbtncolor;

View File

@ -44,6 +44,7 @@ type TCommDlg=class(tcomponent)
@explan(说明) 打开对话框虚函数 @explan(说明) 打开对话框虚函数
**} **}
end end
published
property ChooseOk read FChooseOk; property ChooseOk read FChooseOk;
property WndOwner:variable read FWndOwner write FWndOwner; property WndOwner:variable read FWndOwner write FWndOwner;
property Parent read FWndOwner write SetParent; property Parent read FWndOwner write SetParent;
@ -120,6 +121,7 @@ type TcustommsgADlg=class(TCommDlg)
IDTRYAGAIN 10 "再试一次"按钮被按下 IDTRYAGAIN 10 "再试一次"按钮被按下
IDYES 6 "yes"按钮被选中 IDYES 6 "yes"按钮被选中
} }
published
property mbText:string read FmbText write setMbtext; property mbText:string read FmbText write setMbtext;
property mbbtnstyle:MBbtnstyle read Fbtnval write setmbbtnstyle; property mbbtnstyle:MBbtnstyle read Fbtnval write setmbbtnstyle;
property mbiconstyle:MBiconstyle read Ficonval write setmbiconstyle; property mbiconstyle:MBiconstyle read Ficonval write setmbiconstyle;
@ -172,6 +174,7 @@ type tcustomcolordlg=class(TCommDlg)
@param(CustomColors)(array of integer) 自定义颜色 %% @param(CustomColors)(array of integer) 自定义颜色 %%
@param(RgbResult)(integer) 颜色rgba值 %% @param(RgbResult)(integer) 颜色rgba值 %%
**} **}
published
property CustomColors read GetCustomColors write SetCustomColors; property CustomColors read GetCustomColors write SetCustomColors;
property Result:color read GetResult write SetResult; property Result:color read GetResult write SetResult;
@ -222,6 +225,7 @@ type tcustomfontdlg=class(TCommDlg)
if WndOwner is class(TWinControl)then FFontChoose.hwndowner := WndOwner.Handle; if WndOwner is class(TWinControl)then FFontChoose.hwndowner := WndOwner.Handle;
return _wapi.ChooseFontA(FFontChoose._getptr_); return _wapi.ChooseFontA(FFontChoose._getptr_);
end end
published
property FontInfo:font read GetFontInfo write SetFontInfo; property FontInfo:font read GetFontInfo write SetFontInfo;
property color Write SetColor; property color Write SetColor;
@ -309,6 +313,7 @@ type tcustomfolderdlg=class(TCommDlg)
FFolder := s; FFolder := s;
return true; return true;
end end
published
property DefaultDir read FDefaultDirstr write SetDefaultDir; property DefaultDir read FDefaultDirstr write SetDefaultDir;
property RootFolder:directory read FRootStr write SetRootFold; property RootFolder:directory read FRootStr write SetRootFold;
property Folder read FFolder; property Folder read FFolder;
@ -508,6 +513,7 @@ type tcustomfsdlg = class(TCommDlg)
end end
return r; return r;
end end
published
property filter:filefilter read FFilter write setfilter; property filter:filefilter read FFilter write setfilter;
property filterindex read Ffilterindex write Ffilterindex; property filterindex read Ffilterindex write Ffilterindex;
property FileName read GetResult; property FileName read GetResult;
@ -516,10 +522,10 @@ type tcustomfsdlg = class(TCommDlg)
property initialDir:filename read getInitialDir write setInitialDir; property initialDir:filename read getInitialDir write setInitialDir;
property ShowHidden:bool read fIsShowHidden write setShowHidden; property ShowHidden:bool read fIsShowHidden write setShowHidden;
property Multiselected:bool read fIsMultiselected write setMultiselected; property Multiselected:bool read fIsMultiselected write setMultiselected;
property OverwritePrompt:bool read fIsOverwritePrompt write setOverwritePrompt; property OverwritePrompt read fIsOverwritePrompt write setOverwritePrompt;
property LinkFilePath:bool read fIsLinkFilePath write setLinkFilePath; property LinkFilePath read fIsLinkFilePath write setLinkFilePath;
property FileMustExist:bool read fIsFileMustExist write setFileMustExist; property FileMustExist:bool read fIsFileMustExist write setFileMustExist;
property CreatePrompt:bool read fIsCreatePrompt write setCreatePrompt; property CreatePrompt read fIsCreatePrompt write setCreatePrompt;
{** {**
@param(filter)(array) array("所有文件":"*.*","tsl流文件":"*.stm")%% @param(filter)(array) array("所有文件":"*.*","tsl流文件":"*.stm")%%
@ -617,6 +623,7 @@ type TcustomTipMessageButton = class(TGraphicControl)
end end
return 0; return 0;
end end
published
property messageText:string read fmessageText write setMessageText; property messageText:string read fmessageText write setMessageText;
property messageCaption:string read fmessageCaption write setMessageCaption; property messageCaption:string read fmessageCaption write setMessageCaption;
property showInfomationIcon:bool read isInfomationIcon write setInfomationIcon; property showInfomationIcon:bool read isInfomationIcon write setInfomationIcon;
@ -1098,6 +1105,7 @@ type TInputEditor=class()
@param(info)(array) 信息 %% @param(info)(array) 信息 %%
**} **}
end end
published
property NextCtrl read FNextCtrl Write FNextCtrl; property NextCtrl read FNextCtrl Write FNextCtrl;
property Value read GetValue write SetValue; property Value read GetValue write SetValue;
{** {**
@ -1290,6 +1298,7 @@ type TEditAndBtnUni=class(tcustomcontrol)
FBtn.SetBoundsRect(array(C[2]-18,1,C[2]-3,c[3]-2)); FBtn.SetBoundsRect(array(C[2]-18,1,C[2]-3,c[3]-2));
FText.SetBoundsRect(array(c[0]+1,c[1]+1,c[2]-22,c[3]-2)); FText.SetBoundsRect(array(c[0]+1,c[1]+1,c[2]-22,c[3]-2));
end end
published
property Text read GetText Write SetText; property Text read GetText Write SetText;
private private
function GetText(); function GetText();

View File

@ -1617,6 +1617,7 @@ type TcustomIcon = class(TPicturebase)
end end
return r; return r;
end end
published
property id read FId write SetID; property id read FId write SetID;
property Handle read FHandle write SetHandle; property Handle read FHandle write SetHandle;
property MaskBMP:tbitmap read GetMaskBitMap; property MaskBMP:tbitmap read GetMaskBitMap;
@ -2065,6 +2066,7 @@ type TCustomImageList=class(tcomponent)
FAutoDestroy := false; FAutoDestroy := false;
end end
end end
published
property Handle read HandleNeeded write SetHandle; property Handle read HandleNeeded write SetHandle;
property AutoDestroy read FAutoDestroy write FAutoDestroy; property AutoDestroy read FAutoDestroy write FAutoDestroy;
property ImageCount read FimageCount; property ImageCount read FimageCount;
@ -2076,10 +2078,6 @@ type TCustomImageList=class(tcomponent)
property BkColor:COLORREF read FBKColor write setbkcolor; property BkColor:COLORREF read FBKColor write setbkcolor;
property Images:imagesdata read GetImages write SetImages; property Images:imagesdata read GetImages write SetImages;
property DrawBimpFirst read FDrawBimpFirst write FDrawBimpFirst; property DrawBimpFirst read FDrawBimpFirst write FDrawBimpFirst;
function publishs();override;
begin
return array("name","images","imgwidth","imgheight","bkcolor");
end
{** {**
@param(Handle)(HIMAGELIS) imagelist¾ä±ú %% @param(Handle)(HIMAGELIS) imagelist¾ä±ú %%
@param(AutoDestroy)(bool) ÊÇ·ñÏú»Ù¾ä±ú %% @param(AutoDestroy)(bool) ÊÇ·ñÏú»Ù¾ä±ú %%

View File

@ -855,9 +855,9 @@ private
property TString index 0 read GetMenuType write SetMenuType; property TString index 0 read GetMenuType write SetMenuType;
Property TOwnerdraw:bool index 0x100 read GetMenuType write SetMenuType; Property TOwnerdraw:bool index 0x100 read GetMenuType write SetMenuType;
property Checked:bool read FChecked write SetChecked; property Checked:bool read FChecked write SetChecked;
property OnDrawItem:eventhandler read FOnDrawItem write FOnDrawItem; property OnDrawItem read FOnDrawItem write FOnDrawItem;
property OnMeasureItem:eventhandler read FOnMeasureItem write FOnMeasureItem; property OnMeasureItem read FOnMeasureItem write FOnMeasureItem;
property OnSelect:eventhandler read FOnselect write FOnselect; property OnSelect read FOnselect write FOnselect;
property Oninitmenupopup read FOninitmenupopup write FOninitmenupopup; property Oninitmenupopup read FOninitmenupopup write FOninitmenupopup;
property Onrbuttonup:eventhandler read FOnrbuttonup write FOnrbuttonup; property Onrbuttonup:eventhandler read FOnrbuttonup write FOnrbuttonup;
property Zorder read GetZorder write SetZorder; property Zorder read GetZorder write SetZorder;
@ -961,6 +961,7 @@ type TcustomMainmenu=class(TcustomMenu)
r := _wapi.CreateMenu(); r := _wapi.CreateMenu();
return r; return r;
end end
published
property Hwnd:pointer read FWndHandle write setwndhandle; property Hwnd:pointer read FWndHandle write setwndhandle;
{** {**
@param(Hwnd)()´°¿Ú¾ä±ú %%; @param(Hwnd)()´°¿Ú¾ä±ú %%;

View File

@ -666,6 +666,7 @@ type tcustomtabitem = class() //
FVisible:= true; FVisible:= true;
FCaption := ""; FCaption := "";
end end
published
property Caption read FCaption write SetCaption; property Caption read FCaption write SetCaption;
property PageSheet read FPageSheet Write FPageSheet; property PageSheet read FPageSheet Write FPageSheet;
end end

View File

@ -123,6 +123,7 @@ type TcustomClipBoard=class(tcomponent) //
begin begin
inherited; inherited;
end end
published
property Text read GetText write SetText; property Text read GetText write SetText;
property Bmp read GetBitmap write SetBitmap; property Bmp read GetBitmap write SetBitmap;
{** {**
@ -314,6 +315,7 @@ type TCustomTimer = class(tcomponent)//
return 1; return 1;
end end
end end
published
property Interval:integer read FInterval write SetInterval; //间隔 property Interval:integer read FInterval write SetInterval; //间隔
property Ontimer:eventhandler read FOntimer write FOntimer; //回调 property Ontimer:eventhandler read FOntimer write FOntimer; //回调
property Enabled:bool read FStart Write SetEnabled; //启动 property Enabled:bool read FStart Write SetEnabled; //启动
@ -534,6 +536,7 @@ type tcustombtn = class(TCustomControl) //
FonSetFocus := nil; FonSetFocus := nil;
FonKillFocus := nil; FonKillFocus := nil;
end end
published
property textPos:AlignStyle9 read FtextPosition write setTextPosition; //文字对齐 property textPos:AlignStyle9 read FtextPosition write setTextPosition; //文字对齐
property pushLike:bool read FpushLike write setPushLike; property pushLike:bool read FpushLike write setPushLike;
property multiLine:bool read FmultiLine write setMultiLine; property multiLine:bool read FmultiLine write setMultiLine;
@ -666,6 +669,7 @@ type tcustomcheckbtn=class(tcustombtn) //checkbtn
FcheckState := e.wparam; FcheckState := e.wparam;
InvalidateRect(nil,false); InvalidateRect(nil,false);
end end
published
property checked:bool read FcheckState write setChecked; property checked:bool read FcheckState write setChecked;
property leftText:bool read FleftText write setLeftText; property leftText:bool read FleftText write setLeftText;
{** {**
@ -1711,6 +1715,7 @@ type teditable=class(TSLUIBASE) //
FFont := nil; FFont := nil;
inherited; inherited;
end end
published
property Visible read FVisible write SetVisible; property Visible read FVisible write SetVisible;
property text:string read FString write setEditText; property text:string read FString write setEditText;
property onmaxtext:eventhandler read FOnMaxText write FOnMaxText; //eventhandler 修改 property onmaxtext:eventhandler read FOnMaxText write FOnMaxText; //eventhandler 修改
@ -2185,7 +2190,7 @@ type tVirtualCalender=class(TSLUIBASE)
FHost := nil; FHost := nil;
FFont := nil; FFont := nil;
end end
public published
property Left read FLeft write SetLeft; property Left read FLeft write SetLeft;
property top read FTop write SetTop; property top read FTop write SetTop;
property host read FHost write sethost; property host read FHost write sethost;
@ -2421,6 +2426,7 @@ type TcustomLabel = class(TGraphicControl)
if ifnil(val)then val := 36; if ifnil(val)then val := 36;
return dc.drawtext(txt,rect,val .| DT_NOPREFIX); return dc.drawtext(txt,rect,val .| DT_NOPREFIX);
end end
published
property TextAlign:AlignStyle9 read FTextAlign write SetTextAlign; property TextAlign:AlignStyle9 read FTextAlign write SetTextAlign;
{** {**
@param(TextAlign)(member of TAlignStyle9) 文字对齐 %% @param(TextAlign)(member of TAlignStyle9) 文字对齐 %%
@ -2570,6 +2576,7 @@ type tcustomedit=class(TCustomControl)
if FEditable then FEditable.Recycling(); if FEditable then FEditable.Recycling();
FEditable := nil; FEditable := nil;
end end
published
property text:string read getentrytext write setentrytext; property text:string read getentrytext write setentrytext;
property onmaxtext:eventhandler read Fonmaxtext write fonmaxtext; property onmaxtext:eventhandler read Fonmaxtext write fonmaxtext;
property onupdate read FOnUpdate write FOnUpdate; property onupdate read FOnUpdate write FOnUpdate;
@ -2675,6 +2682,7 @@ type tcustompassword = class(tcustomedit)
end end
inherited; inherited;
end end
published
property PassWordChar:string read getPassWordChar write SetPassWordChar; property PassWordChar:string read getPassWordChar write SetPassWordChar;
end end
@ -3238,6 +3246,7 @@ type TCustomListBoxbase=class(TCustomScrollControl)
begin begin
return FItemCount; return FItemCount;
end end
published
property ItemCount read GetItemCount write SetItemCount; property ItemCount read GetItemCount write SetItemCount;
property ItemHeight read GetYScrollDelta; property ItemHeight read GetYScrollDelta;
{** {**
@ -3768,6 +3777,7 @@ type TcustomListBox=class(TCustomListBoxbase)
Fondrawlist := nil; Fondrawlist := nil;
return inherited; return inherited;
end end
published
property ItemHeight:integer read GetYScrollDelta write setItemHeight; property ItemHeight:integer read GetYScrollDelta write setItemHeight;
property ItemCount:integer read GetItemCount write SetItemCount; property ItemCount:integer read GetItemCount write SetItemCount;
property Multisel:bool read FMultisel write SetMultisel; property Multisel:bool read FMultisel write SetMultisel;
@ -4386,6 +4396,7 @@ type TcustomComboBox=class(TCustomComboBoxbase)
end end
return getItemText(idx); return getItemText(idx);
end end
published
property readonly:bool read Freadonly write setReadOnly; property readonly:bool read Freadonly write setReadOnly;
property Multisel:bool read fmultisel write setMultisel; property Multisel:bool read fmultisel write setMultisel;
property checkbox:bool read fcheckbox write setcheckbox; property checkbox:bool read fcheckbox write setcheckbox;
@ -4594,6 +4605,7 @@ type TcustomToolButton=class(tcomponent)
FEnabled := true; //有效 可以点击 FEnabled := true; //有效 可以点击
FVisible := true; //可见 FVisible := true; //可见
end end
published
property OnClick:eventhandler read FOnClick write FOnClick; property OnClick:eventhandler read FOnClick write FOnClick;
property Caption:string read FCaption write SetCaption; property Caption:string read FCaption write SetCaption;
property ImageId:integer read FImageId write SetImageId; property ImageId:integer read FImageId write SetImageId;
@ -5257,6 +5269,7 @@ type TcustomToolBar=class(TCustomControl)
end ; end ;
return inherited; return inherited;
end end
published
property MainMenu:tmainmenu read fmainmenu write setmainmenu; property MainMenu:tmainmenu read fmainmenu write setmainmenu;
protected protected
procedure SetAlign(Value:TAlign);override; procedure SetAlign(Value:TAlign);override;
@ -5558,6 +5571,7 @@ type TcustomStatusBar=class(TCustomControl)
InvalidateRect(nil,false); InvalidateRect(nil,false);
end end
end end
published
property Items:statusitems read Fitems Write SetItems; property Items:statusitems read Fitems Write SetItems;
property itemtext:string read gettexti write settexti; property itemtext:string read gettexti write settexti;
property itemwidth:integer read getwidthi write setwidthi; property itemwidth:integer read getwidthi write setwidthi;
@ -5956,6 +5970,7 @@ type TCustomSpinEdit = class(TCustomControl)
DrawItem(CI_UP,CIS_NONE); DrawItem(CI_UP,CIS_NONE);
DrawItem(CI_DOWN,CIS_NONE); DrawItem(CI_DOWN,CIS_NONE);
end end
published
property OnIncrease:eventhandler read FOnIncrease write FOnIncrease; property OnIncrease:eventhandler read FOnIncrease write FOnIncrease;
property OnDecrease:eventhandler read FOnDecrease write FOnDecrease; property OnDecrease:eventhandler read FOnDecrease write FOnDecrease;
property Increment:integer read FIncrement write SetIncrement; property Increment:integer read FIncrement write SetIncrement;
@ -6035,6 +6050,7 @@ type tcustomgroupbox=class(TCustomControl)
drawdesigninggrid(); drawdesigninggrid();
///////////////////////////////// /////////////////////////////////
end end
published
property textPos:AlignStyle9 read FtextPosition write setTextPosition; property textPos:AlignStyle9 read FtextPosition write setTextPosition;
private private
function setTextPosition(n); function setTextPosition(n);
@ -6154,6 +6170,7 @@ type tcustomprogressbar=class(TCustomControl)
end end
return r; return r;
end end
published
property smooth:bool read Fsmooth write setSmooth; property smooth:bool read Fsmooth write setSmooth;
property vertical:bool read Fvertical write setVertical; property vertical:bool read Fvertical write setVertical;
{** {**
@ -6575,6 +6592,7 @@ type tcustomipaddr = class(TCustomControl)
FEditors := array(); FEditors := array();
inherited; inherited;
end end
published
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 onaddrchanged:eventhandler read FaddrChange write FaddrChange; property onaddrchanged:eventhandler read FaddrChange write FaddrChange;