CnPack Forum


 
Subject: REQ: Get Current Procedure / Function Name
iwancs (iwan)
普通灌水员
Rank: 2



UID 1210
Digest Posts 1
Credits 72
Posts 28
点点分 72
Reading Access 10
Registered 2005-10-21
Location Indonesia
Status Offline
Post at 2008-6-16 13:44  Profile | Blog | P.M.  | Yahoo!
REQ: Get Current Procedure / Function Name

Hi,
I would like to have a code editor tools that will write current procudure / function name at the cursor position. Can it be done? Thanks
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6750
Posts 3551
点点分 6750
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-6-16 14:12  Profile | Blog | P.M. 
Our procedure list seems can do it. When press Ctrl+D to show the dialog, current procedure/fucntion is the selected one.
Top
iwancs (iwan)
普通灌水员
Rank: 2



UID 1210
Digest Posts 1
Credits 72
Posts 28
点点分 72
Reading Access 10
Registered 2005-10-21
Location Indonesia
Status Offline
Post at 2008-6-25 16:21  Profile | Blog | P.M.  | Yahoo!
It's not what i want, i just want the current procedure / function name to be type in the editor automatically.

Thanks.
Top
iwancs (iwan)
普通灌水员
Rank: 2



UID 1210
Digest Posts 1
Credits 72
Posts 28
点点分 72
Reading Access 10
Registered 2005-10-21
Location Indonesia
Status Offline
Post at 2008-7-5 14:58  Profile | Blog | P.M.  | Yahoo!
Let me add some more info, i want to have a macro to insert current procedure, currently you have a macro to insert next procedure, can we have macro for current procedure?
Thanks
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6750
Posts 3551
点点分 6750
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-7-5 22:29  Profile | Blog | P.M. 
I know your requirement. These days we're busy in coding and testing the new features about structured code highlight with drawing lines. So your requirement has a relatively low piority.
Top
iwancs (iwan)
普通灌水员
Rank: 2



UID 1210
Digest Posts 1
Credits 72
Posts 28
点点分 72
Reading Access 10
Registered 2005-10-21
Location Indonesia
Status Offline
Post at 2008-7-6 08:54  Profile | Blog | P.M.  | Yahoo!
It's ok, i understand that, just to let you know what i wish. Thanks
Oh yeah some time i got List Out Of Index error, it happen randomly, don't know what caused them. Thanks.

I'll take a look to ur new feature, quite cool and handy, but dunno about performance. I've turn off the current structure highlight cause of performance issue, in my D7, sometime it works, but most of the time the structure highlight won't work, i guess that's because my unit is having a long line of code.

I've seen the new feature you build in code rush, it quite handy, but i hope it performes good too.

Keep the good job guys, thanks again

Iwan
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6750
Posts 3551
点点分 6750
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-7-12 21:12  Profile | Blog | P.M. 
About the performance issue of structure highlight and draw line, we tested our CnWizards in our environment. If the unit is less than 30 thousand line, it seems our feature brings not much effect to IDE editors. (Maybe different result in different workstations due to different hardware ;-)

In our 412 unstable version of CnWizards, we add a Demo Pascal Script "CurrentProc.pas" in PSDemo directory. You can add it to our script library and assign a shortcut to it. And press the shortcut when in editor. It can parse current source and get current procedure/function name and insert it into the Editor's current position.
Top
iwancs (iwan)
普通灌水员
Rank: 2



UID 1210
Digest Posts 1
Credits 72
Posts 28
点点分 72
Reading Access 10
Registered 2005-10-21
Location Indonesia
Status Offline
Post at 2008-7-18 09:14  Profile | Blog | P.M.  | Yahoo!
Great, that's what i want to know, i know that u have script, but i couldn't find the command to get current procedure. Thanks, i'll take a look for the demo.

Iwan
Top
 




All times are GMT++8, the time now is 2024-3-28 17:19

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

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