BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Surprise editor feature
Goto page 1, 2  Next
 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Jeremy Collins
Guest





PostPosted: Thu Dec 11, 2003 10:37 am    Post subject: Surprise editor feature Reply with quote



Hi all,

I'm guessing 90% of you knew this already, but for for those
that don't...

I was just typing a function prototype in a class definition:

:
private
:
function GetServer : string;
:
end;

Normally after I type such a declaration, I select the line, hit
Ctrl+C to copy it, and paste it into the implementation section to
write the body of the code.

I accidentally hit Ctrl+Shift+C and Delphi inserted the function
body for me!

--
jc

Remove the -not from email
Back to top
Jorgen Bodde
Guest





PostPosted: Thu Dec 11, 2003 10:44 am    Post subject: Re: Surprise editor feature Reply with quote



That's alled code completion ;-)

Works on property fields as well, and if you create a function body
without declaring it, it also auto creates the class method declaration
for you

if you type

property SomeProperty : String read FProperty write FProperty;

and hit Ctrl-Shift-C, it creates the member var FProperty in your
private field.

- Jorgen

Jeremy Collins wrote:
Quote:
Hi all,

I'm guessing 90% of you knew this already, but for for those
that don't...

I was just typing a function prototype in a class definition:

:
private
:
function GetServer : string;
:
end;

Normally after I type such a declaration, I select the line, hit
Ctrl+C to copy it, and paste it into the implementation section to
write the body of the code.

I accidentally hit Ctrl+Shift+C and Delphi inserted the function
body for me!


--
wxCRP - A Flexible Programmable Code Generator and Repository Tool!
http://www.xs4all.nl/~jorgb/wxcrp/

Back to top
J French
Guest





PostPosted: Thu Dec 11, 2003 11:39 am    Post subject: Re: Surprise editor feature Reply with quote



On Thu, 11 Dec 2003 10:37:42 +0000, Jeremy Collins
<jd.collins (AT) ntlworld-not (DOT) com> wrote:

Quote:
Hi all,

I'm guessing 90% of you knew this already, but for for those
that don't...

I was just typing a function prototype in a class definition:

:
private
:
function GetServer : string;
:
end;

Normally after I type such a declaration, I select the line, hit
Ctrl+C to copy it, and paste it into the implementation section to
write the body of the code.

I accidentally hit Ctrl+Shift+C and Delphi inserted the function
body for me!

You can also get it from the Right Click Menu
- Complete Class at Cursor

It can either auto generate a procedure
- or push a declaration of a procedure up in the Class's Type
declaration

Quite nifty

Back to top
Jeremy Collins
Guest





PostPosted: Thu Dec 11, 2003 1:46 pm    Post subject: Re: Surprise editor feature Reply with quote

J French wrote:
Quote:
On Thu, 11 Dec 2003 10:37:42 +0000, Jeremy Collins
[email]jd.collins (AT) ntlworld-not (DOT) com[/email]> wrote:


Hi all,

I'm guessing 90% of you knew this already, but for for those
that don't...


You can also get it from the Right Click Menu
- Complete Class at Cursor

It can either auto generate a procedure
- or push a declaration of a procedure up in the Class's Type
declaration

Yep, everyone else did know about this ;-)

I thought I'd read up on code completion / code insight etc, but
obviously missed one of the most useful bits!


Quote:
Quite nifty

Yes, wish I'd discovered it ages ago!

--
jc

Remove the -not from email

Back to top
J French
Guest





PostPosted: Thu Dec 11, 2003 4:54 pm    Post subject: Re: Surprise editor feature Reply with quote

On Thu, 11 Dec 2003 13:46:39 +0000, Jeremy Collins
<jd.collins (AT) ntlworld-not (DOT) com> wrote:

<snip>

Quote:

Yep, everyone else did know about this ;-)

I thought I'd read up on code completion / code insight etc, but
obviously missed one of the most useful bits!


Quite nifty

Yes, wish I'd discovered it ages ago!

Just think about the people who have been alerted to it by your post

.... which will remain in Google for years

I do think that we should have something in the FAQ about this sort of
stuff
- the trouble is that I'm too idle to do it

Back to top
Jeremy Collins
Guest





PostPosted: Thu Dec 11, 2003 5:08 pm    Post subject: Re: Surprise editor feature Reply with quote

J French wrote:

Quote:
On Thu, 11 Dec 2003 13:46:39 +0000, Jeremy Collins
[email]jd.collins (AT) ntlworld-not (DOT) com[/email]> wrote:

snip

Yep, everyone else did know about this ;-)

I thought I'd read up on code completion / code insight etc, but
obviously missed one of the most useful bits!



Quite nifty

Yes, wish I'd discovered it ages ago!


Just think about the people who have been alerted to it by your post


That's a comfort. I've been using Delphi since version 1, and I was
up to Delphi 3 before I realised that when you had a component
selected in the form designer, you could press ESC to select the
parent. I was happy enough to post a message on this newsgroup then,
as well! (Almost 5 years ago - gah).

And it was only a couple of months ago that I noticed that the
"ImageIndex" property for TActions (etc) in the OE has a drop-down list
of the icons in the associated imagelist. Up to then I'd been
forever double-clicking imagelists and making a mental note of
the index.

I must take time out to discover all the *other* little tweaks that
have been added to the IDE...


--
jc

Remove the -not from email

Back to top
J French
Guest





PostPosted: Thu Dec 11, 2003 6:25 pm    Post subject: Re: Surprise editor feature Reply with quote

On Thu, 11 Dec 2003 17:08:37 +0000, Jeremy Collins
<jd.collins (AT) ntlworld-not (DOT) com> wrote:


<snip>

Quote:
I must take time out to discover all the *other* little tweaks that
have been added to the IDE...

And even more time out to publish them

- something of which I wholeheartedly approve
- but am too idle to do myself

Back to top
Nicholas Sherlock
Guest





PostPosted: Thu Dec 11, 2003 6:49 pm    Post subject: Re: Surprise editor feature Reply with quote

Jeremy Collins wrote:
Quote:
Hi all,

I'm guessing 90% of you knew this already, but for for those
that don't...
snip

I accidentally hit Ctrl+Shift+C and Delphi inserted the function
body for me!

I know it, and I wish I didn't! I went somewhere with a Delphi version with
code completion, and it saved me SO much time... then I go home to discover
that my Delphi 5 (Standard) doesn't include code completion! Had I known
about code completion, I'd have bought professional edition.

Cheers,
Nicholas Sherlock



Back to top
Maarten Wiltink
Guest





PostPosted: Thu Dec 11, 2003 8:45 pm    Post subject: Re: Surprise editor feature Reply with quote

"J French" <erewhon (AT) nowhere (DOT) com> wrote

[...]
Quote:
I do think that we should have something in the FAQ about this
sort of stuff
- the trouble is that I'm too idle to do it

The idea was floated some time ago, but unfortunately I was too
idle as well.

There was another thing: some shiny! *not*to*be*missed* _adds_inches_
keyboard shortcuts were mentioned that turned out to be provided by
add-ins and minimum Delphi versions. This made collecting a list not
only more work but much more awkward, and in the end I didn't quite
feel up to it.

Groetjes,
Maarten Wiltink



Back to top
J French
Guest





PostPosted: Fri Dec 12, 2003 7:42 am    Post subject: Re: Surprise editor feature Reply with quote

On Thu, 11 Dec 2003 21:45:57 +0100, "Maarten Wiltink"
<maarten (AT) kittensandcats (DOT) net> wrote:

Quote:
"J French" <erewhon (AT) nowhere (DOT) com> wrote in message
news:3fd87f61.17044365 (AT) news (DOT) btclick.com...
[...]
I do think that we should have something in the FAQ about this
sort of stuff
- the trouble is that I'm too idle to do it

The idea was floated some time ago, but unfortunately I was too
idle as well.

There was another thing: some shiny! *not*to*be*missed* _adds_inches_
keyboard shortcuts were mentioned that turned out to be provided by
add-ins and minimum Delphi versions. This made collecting a list not
only more work but much more awkward, and in the end I didn't quite
feel up to it.

Ditto !

Back to top
Jan Schnackenberg
Guest





PostPosted: Fri Dec 12, 2003 8:40 am    Post subject: Re: Surprise editor feature Reply with quote

Hi

Bjørge Sæther wrote:
Quote:
2. Select the watch, right-click and select "Break when changed". This menu
item is enabled when being within a debugging session, and only when the
variable / property is within scope of the debugger (it needs to be able to
read the address of the variable).
3. Voilá ! Now you can hit F9 to make it run again, sit back and wait till
the variable is modified, no matter where it happens !

Cooooooooooool!

Thank you. I do believe that this will help me in one of those
Debuggin-Sessions "WTF changes this friggin Variable". :)

Ciao, Jan

--
/" ASCII RIBBON PS2-Assistent
/ CAMPAIGN Antworten bitte ausschliesslich an die Newsgroup
X AGAINST HTML Links zu Delphi und dem verhalten in Newsgroups:
/ IN MAIL AND NEWS ---> http://www.fh-wedel.de/~snb/ <---


Back to top
VBDis
Guest





PostPosted: Tue Dec 16, 2003 1:17 am    Post subject: Re: Surprise editor feature Reply with quote

Im Artikel <3fd84ada$0$214$e4fe514c (AT) news (DOT) xs4all.nl>, Jorgen Bodde
<jorgb (AT) xs4all (DOT) nl> schreibt:

Quote:
if you type

property SomeProperty : String read FProperty write FProperty;

and hit Ctrl-Shift-C, it creates the member var FProperty in your
private field.

Property completion can lead to unwanted effects! When you define a property
like above, which shall refer to the already existing FProperty field of a base
class, then this field is hidden by the newly created field in the actual
class. This is why I have disabled property completion all the time.

DoDi

Back to top
Rick Carter
Guest





PostPosted: Wed Dec 17, 2003 4:10 am    Post subject: Re: Surprise editor feature Reply with quote

"Nicholas Sherlock" <n_sherlock (AT) hotmail (DOT) com> wrote

Quote:
I went somewhere with a Delphi version with
code completion, and it saved me SO much time... then I go home to discover
that my Delphi 5 (Standard) doesn't include code completion! Had I known
about code completion, I'd have bought professional edition.

Oh? Well, Delphi 6 Personal was available as a free download for over a year
(and can still be registered for free, if you have a friend with the files),
and includes at least the basic functions of Code Completion.

Rick Carter
Chair, Paradox/Delphi SIG, Cincinnati PC Users Group

Back to top
Nicholas Sherlock
Guest





PostPosted: Wed Dec 17, 2003 7:36 am    Post subject: Re: Surprise editor feature Reply with quote

Rick Carter wrote:
Quote:
"Nicholas Sherlock" <n_sherlock (AT) hotmail (DOT) com> wrote in message
news:<braech$khc$1 (AT) lust (DOT) ihug.co.nz>...
I went somewhere with a Delphi version with
code completion, and it saved me SO much time... then I go home to
discover that my Delphi 5 (Standard) doesn't include code
completion! Had I known about code completion, I'd have bought
professional edition.

Oh? Well, Delphi 6 Personal was available as a free download for over
a year (and can still be registered for free, if you have a friend
with the files),
and includes at least the basic functions of Code Completion.

But, then I wouldn't be able to distribute anything I made using Delphi 6
Personal (That's why I'm running a Standard edition and not a Personal). :)

Cheers,
Nicholas Sherlock



Back to top
J French
Guest





PostPosted: Wed Dec 17, 2003 9:35 am    Post subject: Re: Surprise editor feature Reply with quote

On Wed, 17 Dec 2003 20:36:19 +1300, "Nicholas Sherlock"
<n_sherlock (AT) hotmail (DOT) com> wrote:

Quote:
Rick Carter wrote:
"Nicholas Sherlock" <n_sherlock (AT) hotmail (DOT) com> wrote in message
news:<braech$khc$1 (AT) lust (DOT) ihug.co.nz>...
I went somewhere with a Delphi version with
code completion, and it saved me SO much time... then I go home to
discover that my Delphi 5 (Standard) doesn't include code
completion! Had I known about code completion, I'd have bought
professional edition.

Oh? Well, Delphi 6 Personal was available as a free download for over
a year (and can still be registered for free, if you have a friend
with the files),
and includes at least the basic functions of Code Completion.

But, then I wouldn't be able to distribute anything I made using Delphi 6
Personal (That's why I'm running a Standard edition and not a Personal). Smile

Also one would not have the VCL libray source
- which would be a major PITA



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.