| Article | 60000748 |
| Type | Wish |
| Product | Engine |
| Date Added | 1/19/2009 12:00:00 AM |
| Fixed | (2/2/2009 12:00:00 AM) |
| Submitted by | Holloway, Keith D and Mario Perino |
Summary
Ruler wishes, colors, units etc.
Solution
New properties was added in 6015 for RulerObject of vdScrollable control.
1. CursorColor Get/Set the color of ruler cursor.
2. TextColor Get/Set the color of the ruler text.
3. DecimalDisplayType Get/Set the ruler display type for the decimal part of values. Default value is Decimal.
4. Scale Represents the number of drawing units for one ruler unit.Default value is 1.
5. TickMarks Get/Set the number of tick marks between whole integer values.Default value is 10.
6. FractionalTickMarks Get/Set the number of tick marks between fractional values.Default value is 10.
Example:
For using millimiters use the following values:
Scale = 1.0d;//1 unit of ruler is 1 Drawing Unit (assume that 1 Drawing unit represent 1 mm)
TickMarks = 10;
FractionalTickMarks = 10;
DecimalDisplayType = DisplayType.Decimal;
For using inches use the following values:
Scale = 25.4;//1 unit of ruler is 25.4 Drawing Unit (== 1 inch) (assume that 1 Drawing unit represent 1 mm)
TickMarks = 12;// Whole integer values are multiple of 12
FractionalTickMarks = 16;
DecimalDisplayType = DisplayType.Fractional;
*You should keep in mind that in order for the ruler to properly display, the rotation of the WorldToViewMatrix (twist) should be 0.*
