打印本文 打印本文 关闭窗口 关闭窗口
代码创建形式规范 1.0 (for delphi)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数3040  更新时间:2009/4/23 18:34:02  文章录入:mintao  责任编辑:mintao
sp;                          stx:=cnx;
                                      sty:=cny;
                                  end;
      end;

     case (dithermode) of
        dmnearest:
          ditherer := tditherengine.create(bitmap.width, colorlookup);
        dmfloydsteinberg:
          ditherer := tfloydsteinbergditherer.create(bitmap.width, colorlookup);
        dmstucki:
          ditherer := tstuckiditherer.create(bitmap.width, colorlookup);
        dmsierra:
          ditherer := tsierraditherer.create(bitmap.width, colorlookup);
        dmjajuni:
          ditherer := tjajuniditherer.create(bitmap.width, colorlookup);
        dmstevearche:
          ditherer := tstevearcheditherer.create(bitmap.width, colorlookup);
        dmburkes:
          ditherer := tburkesditherer.create(bitmap.width, colorlookup);
      else
        exit;
end;

返回 

4、命名规则
  1、文件名称:   u模块名称;见名知意
  2、控件名称:   功能_控件缩写;见名知意
  3、变量         :   尽量不用缩写,尽量用名词;见名知意
  4、方法与过程:尽量不用缩写,尽量用动宾词组;见名知意
 5、常见的惯例
            类名以t打头 (type之意)
            类的私有数据域以f打头(field之意)
            对数据的存取操作分别以set,get打头
            事件属性以on打头

上一页  [1] [2] [3] [4] 

打印本文 打印本文 关闭窗口 关闭窗口