代码说明:
有四个组件的控制成分。通常把水平和垂直的规则综合起来
TRsRuler is a ruler component with 4 layouts, automatic scale numbers (no overlapping text), Scale 1-1000, Flat or 3D appearance and sideways text for vertical rulers. TRsRulerCorner visually joins horizontal and vertical rulers