VrTypes.pas
上传用户:hbszzs
上传日期:2008-08-20
资源大小:628k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. {*****************************************************}
  2. {                                                     }
  3. {     Varian Component Workshop                       }
  4. {                                                     }
  5. {     Varian Software NL (c) 1996-2000                }
  6. {     All Rights Reserved                             }
  7. {                                                     }
  8. {*****************************************************}
  9. unit VrTypes;
  10. {$I VRLIB.INC}
  11. interface
  12. uses
  13.   Windows, SysUtils;
  14. type
  15.   EVrException = class(Exception);
  16.   TVrVersion = string[4];
  17.   TVrHoursChangeEvent = procedure(Sender: TObject; Hours: Word) of object;
  18.   TVrMinutesChangeEvent = procedure(Sender: TObject; Minutes: Word) of object;
  19.   TVrSecondsChangeEvent = procedure(Sender: TObject; Seconds: Word) of object;
  20.   TVrDrawStyle = (dsOwnerDraw, dsNormal);
  21.   TVrColInt = 1..MaxInt;
  22.   TVrRowInt = 1..MaxInt;
  23.   TVrHoursInt = 0..23;
  24.   TVrMinutesInt = 0..59;
  25.   TVrSecondsInt = 0..59;
  26.   TVrPercentInt = 0..100;
  27.   TVrMaxInt = 1..MaxInt;
  28.   TVrByteInt = 0..255;
  29.   TVrNumGlyphs = 1..4;
  30.   TVrAngle = 0..359;
  31.   TVrTransparentMode = (tmPixel, tmColor);
  32.   TVrTextAngle = 0..359;
  33.   TVrTextAlignment = (vtaLeft, vtaCenter, vtaRight,
  34.     vtaTopLeft, vtaTop, vtaTopRight,
  35.     vtaBottomLeft, vtaBottom, vtaBottomRight);
  36. const
  37.   VrTextAlign: array[TVrTextAlignment] of Integer =
  38.     (DT_LEFT + DT_VCENTER, DT_CENTER + DT_VCENTER, DT_RIGHT + DT_VCENTER,
  39.      DT_TOP + DT_LEFT, DT_TOP + DT_CENTER, DT_TOP + DT_RIGHT,
  40.      DT_BOTTOM + DT_LEFT, DT_BOTTOM + DT_CENTER, DT_BOTTOM + DT_RIGHT);
  41. type
  42.   TVrShapeType = (stRectangle, stSquare, stRoundRect, stRoundSquare,
  43.     stEllipse, stCircle);
  44.   TVrImageTextLayout = (ImageLeft, ImageRight, ImageTop, ImageBottom);
  45.   TVrOrientation = (voVertical, voHorizontal);
  46.   TVrTickMarks = (tmNone, tmBoth, tmBottomRight, tmTopLeft);
  47.   TVrProgressStyle = (psBottomLeft, psTopRight);
  48.   TVrScrollDirection = (sdRightToLeft, sdLeftToRight, sdTopToBottom, sdBottomToTop);
  49. implementation
  50. end.