|
发表于 2008-5-19 19:42:03
|
显示全部楼层
楼主,邮件已经收到。
电话无法接通。
1楼问题,请参考:
系统空间\用户界面基础\界面库\组件库
procedure TOperatorFuncTreeView.Click;
var
lNode: TTreeNode;
lPoint: TPoint;
lHitTests: THitTests;
begin
inherited Click;
if HotTrack then
begin
lPoint := Types.Point(0, 0); // 干掉警告
JsCommon.OSCheck(Borland.Delphi.Windows.GetCursorPos(lPoint));
lPoint := ScreenToClient(lPoint);
lHitTests := GetHitTestInfoAt(lPoint.X, lPoint.Y);
if not (THitTest.htOnItem in lHitTests) then
Exit;
lNode := GetNodeAt(lPoint.X, lPoint.Y);
if Assigned(lNode) and (lNode = Selected) then
begin
//jhm 功能树,文件夹,单击响应
if (SelectedNode.NodeKind in [TBizObjectKind.boFolder, TBizObjectKind.boSpace]) then
Business.Forms.jsDialogs.ShowMsg(SelectedNode.DisplayName, 'Folder');
if (SelectedNode.NodeKind = TBizObjectKind.boFunc) then
begin
TSystemCore.BeginWaiting;
try
TSystemCore.FuncManager.RunFunc(FContext, '',
SelectedNode.BizURL.URL, '', False, nil, False)
finally
TSystemCore.EndWaiting;
end;
end
else
// 只展开
lNode.Expanded := True;
end;
end;
end;
4楼问题,应该是楼主使用有误,请提供出错的代码:
请参考:
Caption := SysUtils.IntToStr(SystemCore.TSystemCore.Operator.FuncItems.Count); |
|