Board index » delphi » Re: Suggestion: retractable functions

Re: Suggestion: retractable functions


2003-07-24 09:19:33 AM
delphi34
Marcelo Carvalho writes:
Quote
Hi,

I'd like to give a suggestion to improve (severely) the Delphi
IDE. Maybe for D8... ;-)

The procedures and functions, in the implementation area, could be
retracted/expanded with a mouse click. We would be able to see the
code in a very clear way:

Example:


Contracted form:


+function DoSomething(S: String): String;

+procedure Anything;

+function TForm1.AnotherThing(X: Integer): Integer;


Expanded form: (expanding only the procedure Anything)


+function DoSomething(S: String): String;

-procedure Anything;
begin
code;
code;
code;
code;
code;
end;

+function TForm1.AnotherThing(X: Integer): Integer;


In fact, when contracting the procedures or functions, it would
just HIDE the begin/end area. But they would be there, for
compilation purposes. If when compiling an error is found, the
compiler can automatically expand the function related.
this is being implemented in latest version of Programer's
NotePad: sourceforge.net/projects/pnotepad/
He's getting there with it.
--
Regards:
Jim McKay
"Doing my part to{*word*211}off the right wing scoundrels!"
"Who are you going to believe... us or your own two eyes?"
--Groucho Marx
Posted with: XanaNews 1.15.2.7
 
 

Re: Suggestion: retractable functions

I propose that the expansion should not just apply to procedures or
functions but also to all other multi- line constructs. i.e. it should
apply to begin / end pairs.
( I guess you would use the grey margin at the left of the editor IDE panes
for this; i.e. the margin that currently indicates "blue dots" and
breakpoints. )
+function DoSomething ...
+while something do ...
+repeat ... until something;
+for something to something do ...
+if something then ...
+else ...
+myType = class ...
Regards,
AndrewFG
"Marcelo Carvalho" <XXXX@XXXXX.COM>writes
Quote
Hi,

I'd like to give a suggestion to improve (severely) the Delphi IDE.
Maybe
for D8... ;-)

The procedures and functions, in the implementation area, could be
retracted/expanded with a mouse click. We would be able to see the code in
a
very clear way:

Example:


Contracted form:


+function DoSomething(S: String): String;

+procedure Anything;

+function TForm1.AnotherThing(X: Integer): Integer;


Expanded form: (expanding only the procedure Anything)


+function DoSomething(S: String): String;

-procedure Anything;
begin
code;
code;
code;
code;
code;
end;

+function TForm1.AnotherThing(X: Integer): Integer;


In fact, when contracting the procedures or functions, it would just
HIDE
the begin/end area. But they would be there, for compilation purposes. If
when
compiling an error is found, the compiler can automatically expand the
function
related.

Best regards,

Marcelo.


PS: This resource would be very useful, but extending the concept, maybe
every
begin/end pair could also be expanded/contracted...


 

Re: Suggestion: retractable functions

Hello Jim,
PERFECT !!!!!!!!
The 2.0.4.2 is almost a TODO List for Borland developers! :-) Many of
suggestions I gave are there:
-Expanding/Collapsing many structures
(begin-end/case/type/class/record/try) (including
toggle/expand-all/collapse-all commands)
-Indentation Guides (a MUST!)
-Coloured Brace matches (desirable for begin/end pairs too)
-Different colors for different types of comments
(It would be good if the expanded/collapsed status of each structure
would be saved with the file - as bookmarks also should be)
It's missing only be inside Delphi... ;-)
[][][][]
Marcelo.
"Jim McKay" <XXXX@XXXXX.COM>escreveu na mensagem
Quote
Marcelo Carvalho writes:

>Hi,
>
>I'd like to give a suggestion to improve (severely) the Delphi
>IDE. Maybe for D8... ;-)
>
>The procedures and functions, in the implementation area, could be
>retracted/expanded with a mouse click. We would be able to see the
>code in a very clear way:
>
>Example:
>
>
>Contracted form:
>
>
>+function DoSomething(S: String): String;
>
>+procedure Anything;
>
>+function TForm1.AnotherThing(X: Integer): Integer;
>
>
>Expanded form: (expanding only the procedure Anything)
>
>
>+function DoSomething(S: String): String;
>
>-procedure Anything;
>begin
>code;
>code;
>code;
>code;
>code;
>end;
>
>+function TForm1.AnotherThing(X: Integer): Integer;
>
>
>In fact, when contracting the procedures or functions, it would
>just HIDE the begin/end area. But they would be there, for
>compilation purposes. If when compiling an error is found, the
>compiler can automatically expand the function related.

this is being implemented in latest version of Programer's
NotePad: sourceforge.net/projects/pnotepad/

He's getting there with it.
--
Regards:
Jim McKay

"Doing my part to{*word*211}off the right wing scoundrels!"

"Who are you going to believe... us or your own two eyes?"
--Groucho Marx

Posted with: XanaNews 1.15.2.7

 

Re: Suggestion: retractable functions

Hi,
Quote
It will more than likely be in Delphi 8, since the plan is for it to share
the same IDE core as C#Builder.
:-D
This feature is a reason enough to make an upgrade!
This will be one of those changes that we think how could we live without
it before... Just like Object TreeView...
[][][][]
Marcelo.
 

Re: Suggestion: retractable functions

Marcelo Carvalho writes:
Quote
Hello Jim,

PERFECT !!!!!!!!

The 2.0.4.2 is almost a TODO List for Borland developers! :-)
Many of suggestions I gave are there:
I had communication w/author on & off during development
of previous version. He was engaged, interested, and
ended up doing most everything that came out of our
conversations.
I say this to suggest you share thoughts w/him (Simon).
--
Regards:
Jim McKay
"Doing my part to{*word*211}off the right wing scoundrels!"
"Who are you going to believe... us or your own two eyes?"
--Groucho Marx
Posted with: XanaNews 1.15.2.7