🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #919

tips about delphi editor(interesting)

#919
From: Stray
Date: Wed, 29 Apr 1998 00:00
58 lines
2747 bytes

Form Design Quick Keys
Delphi makes designing the visual interface of your
applications so much easier, but there are tricks that
can make design even slicker! If you find it a pain
moving controls on your forms into exactly the right
position using the mouse, try these:
� Use Ctrl plus the cursor keys to move the current
control on the form in one pixel increments;
� Use Shift plus the cursor keys to re-size the current
control on the form in one pixel increments;
Also, pressing the Esc key while a control is selected on
a form passes the focus to the underlying control or
form.
More Editor Shortcuts
Ever wanted to remove a column of text at the end of
your lines? For example:
Statement1; { Comment 1 }
Statement2; { Comment 2 }
Statement3; { Comment 3 }
Statement4; { Comment 4 }
Statement5; { Comment 5 }
Statement6; { Comment 6 }
Statement7; { Comment 7 }
Suppose you wanted to remove the Comments.
Normally you would have to remove them one by one
by going to the beginning of the comment and pressing
Ctrl-Q-Y (to remove all the text up to the end of the
line). The new Borland IDEs (Delphi 1.0 and BC++ 4.x)
however support a new feature: you can now mark a
column of text. To do this using the Default or Classic
keyboard mapping:
Using the keyboard:
� Type Ctrl-O-C (to enter column selection mode),
� Now select the part you want to remove, by using
the Shift and cursor keys,
� After this you can remove the text by pressing
Ctrl-Del (or Shift-Del to cut it to the clipboard).
This method is also ideal if you want to swap two
columns of text: just mark the column, cut it to the
clipboard and paste it where you want it. To return to
the normal selection mode, press Ctrl-O-K.
Using the mouse:
� Use Alt Left Mouse Button to select a block of text.
You can also try out the other marking methods like
inclusive block marking or line marking (Ctrl-O-I and
Ctrl-O-L respectively). Here are some more editor tips:
� Ever wanted to put a complete word into uppercase
or lowercase in the IDE? While the cursor is in the
word, press Ctrl-K-E to change it to lowercase, or
press Ctrl-K-F for lowercase.
� Ever wanted to go directly to a specific line number
in the IDE? Press Ctrl-O-G and then enter the line
number you want to go to.

--
�� ��Դ: �й�ƴ�BBSվ [bbs.ustc.edu.cn]
Technical Details
Message-ID: <980430.yUZKJ$PBBS@bbs.ustc.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fc86e,e1868badf751ecfb,start
X-Google-Attributes: gidfc86e,public
From: Li_Heng@bbs.ustc.edu.cn (Stray)
Subject: tips about delphi editor(interesting)
Date: 1998/04/29
Message-ID: <980430.yUZKJ$PBBS@bbs.ustc.edu.cn>
X-Deja-AN: 348859362
Organization: �й�ƴ�BBSվ
Newsgroups: cn.bbs.comp.program