下列中左侧为缩写,右侧为组件名称。
------------------------
Standard Tab
------------------------
mm TMainMenu
pm TPopupMenu
mmi TMainMenuItem
pmi TPopupMenuItem
lbl TLabel
edt TEdit
mem TMemo
btn TButton
cb TCheckBox
rb TRadioButton
lb TListBox
cb TComboBox
scb TScrollBar
gb TGroupBox
rg TRadioGroup
pnl TPanel
cl TCommandList
------------------------
Additional Tab
------------------------
bbtn TBitBtn
sb TSpeedButton
me TMaskEdit
sg TStringGrid
dg TDrawGrid
img TImage
shp TShape
bvl TBevel
sbx TScrollBox
clb TCheckListbox
spl TSplitter
stx TStaticText
cht TChart
------------------------
Win32 Tab
------------------------
tbc TTabControl
pgc TPageControl
il TImageList
re TRichEdit
tbr TTrackBar
prb TProgressBar
ud TUpDown
hk THotKey
ani TAnimate
dtp TDateTimePicker
tv TTreeView
lv TListView
hdr THeaderControl
stb TStatusBar
tlb TToolBar
clb TCoolBar
------------------------
System Tab
------------------------
tm TTimer
pb TPaintBox
mp TMediaPlayer
olec TOleContainer
ddcc TDDEClientConv
ddci TDDEClientItem
ddsc TDDEServerConv
ddsi TDDEServerItem
------------------------
Internet Tab
------------------------
csk TClientSocket
ssk TServerSocket
wbd TWebDispatcher
pp TPageProducer
tp TQueryTableProducer
dstp TDataSetTableProducer
nmdt TNMDayTime
nec TNMEcho
nf TNMFinger
nftp TNMFtp
nhttp TNMHttp
nMsg TNMMsg
nmsg TNMMSGServ
nntp TNMNNTP
npop TNMPop3
nuup TNMUUProcessor
smtp TNMSMTP
nst TNMStrm
nsts TNMStrmServ
ntm TNMTime
nudp TNMUdp
psk TPowerSock
ngs TNMGeneralServer
html THtml
url TNMUrl
sml TSimpleMail
------------------------
Data Access Tab
------------------------
ds TDataSource
tbl TTable
qry TQuery
sp TStoredProc
db TDataBase
ssn TSession
bm TBatchMove
usql TUpdateSQL
------------------------
Data Controls
------------------------
dbg TDBGrid
dbn TDBNavigator
dbt TDBText
dbe TDBEdit
dbm TDBMemo
dbi TDBImage
dblb TDBListBox
dbcb TDBComboBox
dbch TDBCheckBox
dbrg TDBRadioGroup
dbll TDBLookupListBox
dblc TDBLookupComboBox
dbre TDBRichEdit
dbcg TDBCtrlGrid
dbch TDBChart
------------------------
Decision Cube Tab
------------------------
dcb TDecisionCube
dcq TDecisionQuery
dcs TDecisionSource
dcp TDecisionPivot
dcg TDecisionGrid
dcgr TDecisionGraph
------------------------
QReport Tab
------------------------
qr TQuickReport
qrsd TQRSubDetail
qrb TQRBand
qrcb TQRChildBand
qrg TQRGroup
qrl TQRLabel
qrt TQRText
qre TQRExpr
qrs TQRSysData
qrm TQRMemo
qrrt TQRRichText
qrdr TQRDBRichText
qrsh TQRShape
qri TQRImage
qrdi TQRDBMImage
qrcr TQRCompositeReport
qrp TQRPreview
qrch TQRChart
------------------------
Dialogs Tab
------------------------
The dialog box components are really forms encapsulated by a component. Therefore,they will follow a convention similar to the form naming convention. The type definition is already defined by the component name. The instance name will be the same as the type instance without the numeric prefix, which is assigned by Delphi. Examples are as follows:
类型 实例名称
TOpenDialog OpenDialog
TSaveDialog SaveDialog
TOpenPictureDialog OpenPictureDialog
TSavePictureDialog SavePictureDialog
TFontDialog FontDialog
TColorDialog ColorDialog
TPrintDialog PrintDialog
TPrintSetupDialog PrinterSetupDialog
TFindDialog FindDialog
TReplaceDialog ReplaceDialog
------------------------
Win31 Tab
------------------------
dbll TDBLookupList
dblc TDBLookupCombo
ts TTabSet
ol TOutline
tnb TTabbedNoteBook
nb TNoteBook
hdr THeader
flb TFileListBox
dlb TDirectoryListBox
dcb TDriveComboBox
fcb TFilterComboBox
------------------------
Samples Tab
------------------------
gg TGauge
cg TColorGrid
spb TSpinButton
spe TSpinEdit
dol TDirectoryOutline
cal TCalendar
ibea TIBEventAlerter
------------------------
ActiveX Tab
------------------------
cfx TChartFX
vsp TVSSpell
f1b TF1Book
vtc TVTChart
grp TGraph
------------------------
Midas Tab
------------------------
prv TProvider
cds TClientDataSet
qcds TQueryClientDataSet
dcom TDCOMConnection
olee TOleEnterpriseConnection
sck TSocketConnection
rms TRemoteServer
mid TmidasConnection
【整理】编程单词缩写规则
1、大于2个单词则采用缩写规则,否则不用缩写。
2、缩写的规则采用国际惯用方法:
元音字母剔除法,首字母除外。
使用单词的头一个或几个字母。
组合单词使用如下规则:
3、使用变量名中每个有典型意义的单词。如Count of Failure写成FailCnt。
4、去掉无用的单词后缀 ing, ed等。如Paging Request写成PagReq。
例如:ft=foot,jpn=japan,bld=build,您可以尝试读一下,发音几乎不变,辅音字母是发音的关键。
依据此规则,则字母应该缩写如下:
project_no=prjct_no
approval_status=apprvl_status
contract_code=cntrct_code
department=department(无需缩写)
另外尽量采用大家公认的缩写形式。
====== 常用缩写 ======
完整单词 缩写
A
average ——> avg
B
back ——> bk
background ——> bg
break ——> brk
buffer ——> buf
C
color ——> cr(clr)
control ——> ctrl
D
data ——> dat
delete ——> del
document ——> doc
E
edit ——> edt
error ——> err
escape ——> esc
F
flag ——> flg
form ——> frm
G
grid ——> grd
I
increment ——> inc
information ——> info
initial ——> init
insert ——> ins
image ——> img
L
label ——> lab
length ——> len
list ——> lst
library ——> lib
M
manager ——> mngr(mgr)
message ——> msg
O
Oracle ——> Ora
P
panorama ——> pano
password ——> pwd
picture ——> pic
point ——> pt
position ——> pos
print ——> prn
program ——> prg
S
server ——> srv
source ——> src
statistic ——> stat
string ——> str
Sybase ——> Syb
T
temp ——> tmp
text ——> txt
U
user ——> usr
W
window ——> wnd(win)
===》元音剔除法、截头法为基本方法,在此基础上使用“典型词组合法”
A
absolute -> abs
argument -> arg
arguments -> args
array -> arr
attribute -> attr
attributes -> attrs
average -> avg
B
background -> bg
buffer -> buf
C
configure -> conf
control -> ctrl
count -> cnt
current -> curr
D
delete -> del
description -> desc
destination -> dest
document -> doc
E
error -> err
escape -> esc
F
function -> fn
I
image -> img
increment -> inc
index -> idx
information -> info
initialize -> init
insert -> ins
J
JavaScript -> js
L
length -> len
library -> lib
M
manager -> mgr
message -> msg
N
number -> num
O
object -> obj
option -> opt
options -> opts
P
parameter-> param
password -> pwd
picture -> pic
point -> pt
position -> pos
previous -> prev
property -> prop
S
source -> src
string -> str
T
temporary -> tmp
V
value -> val
W
window -> wnd