CnPack Forum

#1 在D7下模拟出D2007 IDE的行号显示
修改了cnwizards\Source\SrcEditorEnhance\CnSrcEditorGutter.pas 346行
自娱自乐:lol:

if ((Idx = 1) or (Idx mod 10 = 0) or (Idx = FPosInfo.LineCount)) then
DrawText(Canvas.Handle, PChar(StrNum), Length(StrNum), R, DT_VCENTER or DT_RIGHT)
else if (Idx mod 5 = 0) then
DrawText(Canvas.Handle, PChar('--' + #0 ), 2, R, DT_VCENTER or DT_RIGHT)
else
DrawText(Canvas.Handle, PChar('-' + #0 ), 1, R, DT_VCENTER or DT_RIGHT)

[[i ..

#1 >>Next Page

Forum:CnPack IDE 专家包（CnW ...
Thread:在D7下模拟出D2007 ID ...
Next Thread:CnPack IDE 专家包发 ...

Home
Login

Powered by Discuz!