CnPack Forum


 
jjwwang
普通灌水员
Rank: 2



UID 40594
Digest Posts 0
Credits 50
Posts 22
点点分 50
Reading Access 10
Registered 2008-6-22
Status Offline
Post at 2009-4-6 10:38  Profile | Blog | P.M. 
Ctrl+Z

看源代码的时候,经常从一个方法跳到另一个方法, 再跳到第三个方法 . . .再跳...

(在同一个单元文件中)  正常情况下按CTRL+Z会 反向再跳回去. 现在按Ctrl+Z回不去了.

希望能保留住这个默认的功能.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-4-6 10:49  Profile | Blog | P.M. 
CTRL+Z默认是IDE的撤销功能吧?没有返回跳转的机制吧?
CnWizards也并未处理这个热键。
Top
jjwwang
普通灌水员
Rank: 2



UID 40594
Digest Posts 0
Credits 50
Posts 22
点点分 50
Reading Access 10
Registered 2008-6-22
Status Offline
Post at 2009-4-6 11:07  Profile | Blog | P.M. 
procedure TCustomFrame.AddActionList(ActionList: TCustomActionList);
var
  Form: TCustomForm;
begin
  Form := GetParentForm(Self);
  if Form <> nil then
  begin
    if Form.FActionLists = nil then Form.FActionLists := TList.Create;
    Form.FActionLists.Add(ActionList);
  end;
end;

我按住ctrl键,然后点GetParentForm(Self); 会跳到

function GetParentForm(Control: TControl): TCustomForm;
begin
  while Control.Parent <> nil do Control := Control.Parent;
  if Control is TCustomForm then
    Result := TCustomForm(Control) else
    Result := nil;
end;

如果这时我按ctrl+z会再回到
...
  Form := GetParentForm(Self);   回到这.
...

这在看源代码的时候时候非常方便.
Top
jjwwang
普通灌水员
Rank: 2



UID 40594
Digest Posts 0
Credits 50
Posts 22
点点分 50
Reading Access 10
Registered 2008-6-22
Status Offline
Post at 2009-4-6 11:12  Profile | Blog | P.M. 
不知道我说清楚了没有.


或者这样.

在Forms 或 其它任何单元文件中,  鼠标随便点几个地方. 然后按ctrl+z
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-4-6 20:42  Profile | Blog | P.M. 
请问您的Delphi是什么版本?7或2007或2009?
Top
jjwwang
普通灌水员
Rank: 2



UID 40594
Digest Posts 0
Credits 50
Posts 22
点点分 50
Reading Access 10
Registered 2008-6-22
Status Offline
Post at 2009-4-7 11:53  Profile | Blog | P.M. 
是d7  

难道大伙的没这功能?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-4-7 12:37  Profile | Blog | P.M. 
D7似乎是没这个功能的。请问您是否安装了其它IDE专家包或第三方组件?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-4-7 13:20  Profile | Blog | P.M. 
抱歉,我搞错了。经过大伙提示,D7是有这个功能的。
我们查查为何此功能不见了。
Top
kendling (小冬)
高级版主
Rank: 8Rank: 8
MyvNet


Medal No.1  
UID 703
Digest Posts 5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
Post at 2009-4-7 14:01  Profile | Site | Blog | P.M.  | QQ | Yahoo!
我一直在D7下使用CW,并没有出现楼主所说的问题。




小冬
http://MyvNet.com
Top
jjwwang
普通灌水员
Rank: 2



UID 40594
Digest Posts 0
Credits 50
Posts 22
点点分 50
Reading Access 10
Registered 2008-6-22
Status Offline
Post at 2009-4-12 12:25  Profile | Blog | P.M. 
头,有什么结果了吗?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-4-12 14:35  Profile | Blog | P.M. 
还没查出来。
Top
 




All times are GMT++8, the time now is 2024-11-23 10:06

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008918 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP