对象名的前缀约定:
对象类型 前缀
Button btn
Canvas cvs
CheckBox chk
Image img
Label lbl
List lst
Choice chc
Dialog dlg
Event evt
Frame frm
Menu menu
Panel pnl
TextArea txa
TextField txf
对象类型 前缀
Button btn
Canvas cvs
CheckBox chk
Image img
Label lbl
List lst
Choice chc
Dialog dlg
Event evt
Frame frm
Menu menu
Panel pnl
TextArea txa
TextField txf
本文介绍了一种用于UI控件的命名规范,该规范通过前缀来区分不同类型的控件,如Button使用btn作为前缀,有助于提高代码的可读性和维护性。
396

被折叠的 条评论
为什么被折叠?



