isxclasses.pas 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. TObject = class
  2. constructor Create;
  3. procedure Free;
  4. end;
  5. TPersistent = class(TObject)
  6. procedure Assign(Source: TPersistent);
  7. end;
  8. TComponent = class(TPersistent)
  9. function FindComponent(AName: String): TComponent;
  10. constructor Create(AOwner: TComponent);
  11. property Owner: TComponent; read write;
  12. procedure DestroyComponents;
  13. procedure Destroying;
  14. procedure FreeNotification(AComponent: TComponent);
  15. procedure InsertComponent(AComponent: TComponent);
  16. procedure RemoveComponent(AComponent: TComponent);
  17. property Components[Index: Integer]: TComponent; read;
  18. property ComponentCount: Integer; read;
  19. property ComponentIndex: Integer; read write;
  20. property ComponentState: Byte; read;
  21. property DesignInfo: Longint; read write;
  22. property Name: String; read write;
  23. property Tag: Longint; read write;
  24. end;
  25. TStrings = class(TPersistent)
  26. function Add(S: String): Integer;
  27. procedure Append(S: String);
  28. procedure AddStrings(Strings: TStrings);
  29. procedure Clear;
  30. procedure Delete(Index: Integer);
  31. function IndexOf(const S: String): Integer;
  32. procedure Insert(Index: Integer; S: String);
  33. property Count: Integer; read;
  34. property Text: String; read write;
  35. property CommaText: String; read write;
  36. procedure LoadFromFile(FileName: String);
  37. procedure SaveToFile(FileName: String);
  38. property Strings[Index: Integer]: String; read write;
  39. property Objects[Index: Integer]: TObject; read write;
  40. end;
  41. TNotifyEvent = procedure(Sender: TObject);
  42. TDuplicates = (dupIgnore, dupAccept, dupError);
  43. TStringList = class(TStrings)
  44. function Find(S: String; var Index: Integer): Boolean;
  45. procedure Sort;
  46. property Duplicates: TDuplicates; read write;
  47. property Sorted: Boolean; read write;
  48. property OnChange: TNotifyEvent; read write;
  49. property OnChanging: TNotifyEvent; read write;
  50. end;
  51. { Seek Origin values: soFromBeginning, soFromCurrent, soFromEnd }
  52. TStream = class(TObject)
  53. function Read(var Buffer: AnyString; ByteCount: Longint): Longint;
  54. function Write(const Buffer: AnyString; ByteCount: Longint): Longint;
  55. function Seek(Offset: Int64; Origin: Word): Int64;
  56. procedure ReadBuffer(var Buffer: AnyString; ByteCount: Longint);
  57. procedure WriteBuffer(const Buffer: AnyString; ByteCount: Longint);
  58. function CopyFrom(Source: TStream; ByteCount: Int64; BufferSize: Integer): Int64;
  59. property Position: Longint; read write;
  60. property Size: Longint; read write;
  61. end;
  62. THandleStream = class(TStream)
  63. constructor Create(AHandle: Integer);
  64. property Handle: Integer; read;
  65. end;
  66. TFileStream = class(THandleStream)
  67. constructor Create(Filename: String; Mode: Word);
  68. end;
  69. TStringStream = class(TStream)
  70. constructor Create(AString: String);
  71. end;
  72. TGraphicsObject = class(TPersistent)
  73. property OnChange: TNotifyEvent; read write;
  74. end;
  75. TBrushStyle = (bsSolid, bsClear, bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross);
  76. TBrush = class(TGraphicsObject)
  77. constructor Create;
  78. property Color: TColor; read write;
  79. property Style: TBrushStyle; read write;
  80. end;
  81. TFontStyle = (fsBold, fsItalic, fsUnderline, fsStrikeOut);
  82. TFontStyles = set of TFontStyle;
  83. TColor = Integer;
  84. { TColor values: clBlack, clMaroon, clGreen, clOlive, clNavy, clPurple, clTeal, clGray, clSilver, clRed, clLime, clYellow, clBlue, clFuchsia, clAqua, clLtGray, clDkGray, clWhite, clNone, clDefault, clScrollBar, clBackground, clActiveCaption, clInactiveCaption, clMenu, clWindow, clWindowFrame, clMenuText, clWindowText, clCaptionText, clActiveBorder, clInactiveBorder, clAppWorkSpace, clHighlight, clHighlightText, clBtnFace, clBtnShadow, clGrayText, clBtnText, clInactiveCaptionText, clBtnHighlight, cl3DDkShadow, cl3DLight, clInfoText, clInfoBk, clHotLight }
  85. TFont = class(TGraphicsObject)
  86. constructor Create;
  87. property Handle: Integer; read;
  88. property Color: TColor; read write;
  89. property Height: Integer; read write;
  90. property Name: String; read write;
  91. property Pitch: Byte; read write;
  92. property Size: Integer; read write;
  93. property PixelsPerInch: Integer; read write;
  94. property Style: TFontStyles; read write;
  95. end;
  96. TPenMode = (pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy, pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge, pmNotMerge, pmMask, pmNotMask, pmXor, pmNotXor);
  97. TPenStyle = (psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame);
  98. TPen = class(TGraphicsObject)
  99. constructor Create;
  100. property Color: TColor; read write;
  101. property Mode: TPenMode; read write;
  102. property Style: TPenStyle; read write;
  103. property Width: Integer; read write;
  104. end;
  105. TCanvas = class(TPersistent)
  106. procedure Arc(X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer);
  107. procedure Chord(X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer);
  108. procedure Draw(X, Y: Integer; Graphic: TGraphic);
  109. procedure Ellipse(X1, Y1, X2, Y2: Integer);
  110. procedure FloodFill(X, Y: Integer; Color: TColor; FillStyle: Byte);
  111. procedure LineTo(X, Y: Integer);
  112. procedure MoveTo(X, Y: Integer);
  113. procedure Pie(X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer);
  114. procedure Rectangle(X1, Y1, X2, Y2: Integer);
  115. procedure Refresh;
  116. procedure RoundRect(X1, Y1, X2, Y2, X3, Y3: Integer);
  117. function TextHeight(Text: String): Integer;
  118. procedure TextOut(X, Y: Integer; Text: String);
  119. function TextWidth(Text: String): Integer;
  120. property Handle: Integer; read write;
  121. property Pixels: Integer Integer Integer; read write;
  122. property Brush: TBrush; read;
  123. property CopyMode: Byte; read write;
  124. property Font: TFont; read;
  125. property Pen: TPen; read;
  126. end;
  127. TGraphic = class(TPersistent)
  128. procedure LoadFromFile(const Filename: String);
  129. procedure SaveToFile(const Filename: String);
  130. property Empty: Boolean; read write;
  131. property Height: Integer; read write;
  132. property Modified: Boolean; read write;
  133. property Width: Integer; read write;
  134. property OnChange: TNotifyEvent; read write;
  135. end;
  136. TAlphaFormat = (afIgnored, afDefined, afPremultiplied);
  137. HBITMAP = Integer;
  138. TBitmap = class(TGraphic)
  139. procedure LoadFromStream(Stream: TStream);
  140. procedure SaveToStream(Stream: TStream);
  141. property AlphaFormat: TAlphaFormat; read write;
  142. property Canvas: TCanvas; read write;
  143. property Handle: HBITMAP; read write;
  144. end;
  145. TPngImage = class(TGraphic)
  146. procedure LoadFromStream(Stream: TStream);
  147. procedure SaveToStream(Stream: TStream);
  148. property Canvas: TCanvas; read write;
  149. end;
  150. TAlign = (alNone, alTop, alBottom, alLeft, alRight, alClient);
  151. TAnchorKind = (akLeft, akTop, akRight, akBottom);
  152. TAnchors = set of TAnchorKind;
  153. TCursor = Integer;
  154. { TCursor values: crDefault, crNone, crArrow, crCross, crIBeam, crSizeNESW, crSizeNS, crSizeNWSE, crSizeWE, crUpArrow, crHourGlass, crDrag, crNoDrop, crHSplit, crVSplit, crMultiDrag, crSQLWait, crNo, crAppStart, crHelp, crHandPoint, crSizeAll, crHand }
  155. TControl = class(TComponent)
  156. constructor Create(AOwner: TComponent);
  157. procedure BringToFront;
  158. procedure Hide;
  159. procedure Invalidate;
  160. procedure Refresh;
  161. procedure Repaint;
  162. procedure SendToBack;
  163. procedure Show;
  164. procedure Update;
  165. procedure SetBounds(ALeft, ATop, AWidth, AHeight: Integer);
  166. property Left: Integer; read write;
  167. property Top: Integer; read write;
  168. property Width: Integer; read write;
  169. property Height: Integer; read write;
  170. property Hint: String; read write;
  171. property Align: TAlign; read write;
  172. property ClientHeight: Longint; read write;
  173. property ClientWidth: Longint; read write;
  174. property ShowHint: Boolean; read write;
  175. property Visible: Boolean; read write;
  176. property Enabled: Boolean; read write;
  177. property Cursor: TCursor; read write;
  178. end;
  179. TWinControl = class(TControl)
  180. property Parent: TWinControl; read write;
  181. property ParentBackground: Boolean; read write;
  182. property Handle: Longint; read write;
  183. property Showing: Boolean; read;
  184. property TabOrder: Integer; read write;
  185. property TabStop: Boolean; read write;
  186. function CanFocus: Boolean;
  187. function Focused: Boolean;
  188. property Controls[Index: Integer]: TControl; read;
  189. property ControlCount: Integer; read;
  190. end;
  191. TGraphicControl = class(TControl)
  192. end;
  193. TCustomControl = class(TWinControl)
  194. end;
  195. TScrollingWinControl = class(TWinControl)
  196. procedure ScrollInView(AControl: TControl);
  197. end;
  198. TFormBorderStyle = (bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin);
  199. TBorderIcon = (biSystemMenu, biMinimize, biMaximize, biHelp);
  200. TBorderIcons = set of TBorderIcon;
  201. TConstraintSize = 0..MaxInt;
  202. TSizeConstraints = class(TPersistent);
  203. property MaxHeight: TConstraintSize; read write;
  204. property MaxWidth: TConstraintSize; read write;
  205. property MinHeight: TConstraintSize; read write;
  206. property MinWidth: TConstraintSize; read write;
  207. end;
  208. TFormStyle = (fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop);
  209. TPopupMode = (pmNone, pmAuto, pmExplicit);
  210. TPosition = (poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter);
  211. TCloseAction = (caNone, caHide, caFree, caMinimize);
  212. TCloseEvent = procedure(Sender: TObject; var Action: TCloseAction);
  213. TCloseQueryEvent = procedure(Sender: TObject; var CanClose: Boolean);
  214. TEShiftState = (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble);
  215. TShiftState = set of TEShiftState;
  216. TKeyEvent = procedure(Sender: TObject; var Key: Word; Shift: TShiftState);
  217. TKeyPressEvent = procedure(Sender: TObject; var Key: Char);
  218. TForm = class(TScrollingWinControl)
  219. constructor CreateNew(AOwner: TComponent);
  220. procedure Close;
  221. procedure Hide;
  222. procedure Show;
  223. function ShowModal: Integer;
  224. procedure Release;
  225. property Active: Boolean; read;
  226. property ActiveControl: TWinControl; read write;
  227. property Anchors: TAnchors; read write;
  228. property AutoScroll: Boolean; read write;
  229. property BorderIcons: TBorderIcons; read write;
  230. property BorderStyle: TFormBorderStyle; read write;
  231. property Caption: String; read write;
  232. property Color: TColor; read write;
  233. property Constraints: TSizeConstraints; read write;
  234. property Font: TFont; read write;
  235. property FormStyle: TFormStyle; read write;
  236. property KeyPreview: Boolean; read write;
  237. property PopupMode: TPopupMode; read write;
  238. property PopupParent: TForm; read write;
  239. property Position: TPosition; read write;
  240. property OnActivate: TNotifyEvent; read write;
  241. property OnClick: TNotifyEvent; read write;
  242. property OnDblClick: TNotifyEvent; read write;
  243. property OnClose: TCloseEvent; read write;
  244. property OnCloseQuery: TCloseQueryEvent; read write;
  245. property OnCreate: TNotifyEvent; read write;
  246. property OnDestroy: TNotifyEvent; read write;
  247. property OnDeactivate: TNotifyEvent; read write;
  248. property OnHide: TNotifyEvent; read write;
  249. property OnKeyDown: TKeyEvent; read write;
  250. property OnKeyPress: TKeyPressEvent; read write;
  251. property OnKeyUp: TKeyEvent; read write;
  252. property OnResize: TNotifyEvent; read write;
  253. property OnShow: TNotifyEvent; read write;
  254. end;
  255. TCustomLabel = class(TGraphicControl)
  256. end;
  257. TAlignment = (taLeftJustify, taRightJustify, taCenter);
  258. TLabel = class(TCustomLabel)
  259. property Alignment: TAlignment; read write;
  260. property Anchors: TAnchors; read write;
  261. property AutoSize: Boolean; read write;
  262. property Caption: String; read write;
  263. property Color: TColor; read write;
  264. property FocusControl: TWinControl; read write;
  265. property Font: TFont; read write;
  266. property WordWrap: Boolean; read write;
  267. property OnClick: TNotifyEvent; read write;
  268. property OnDblClick: TNotifyEvent; read write;
  269. end;
  270. TCustomEdit = class(TWinControl)
  271. procedure Clear;
  272. procedure ClearSelection;
  273. procedure SelectAll;
  274. property Modified: Boolean; read write;
  275. property SelLength: Integer; read write;
  276. property SelStart: Integer; read write;
  277. property SelText: String; read write;
  278. property Text: String; read write;
  279. end;
  280. TBorderStyle = TFormBorderStyle;
  281. TEditCharCase = (ecNormal, ecUpperCase, ecLowerCase);
  282. TEdit = class(TCustomEdit)
  283. property Anchors: TAnchors; read write;
  284. property AutoSelect: Boolean; read write;
  285. property AutoSize: Boolean; read write;
  286. property BorderStyle: TBorderStyle; read write;
  287. property CharCase: TEditCharCase; read write;
  288. property Color: TColor; read write;
  289. property Font: TFont; read write;
  290. property HideSelection: Boolean; read write;
  291. property MaxLength: Integer; read write;
  292. property PasswordChar: Char; read write;
  293. property ReadOnly: Boolean; read write;
  294. property Text: String; read write;
  295. property OnChange: TNotifyEvent; read write;
  296. property OnClick: TNotifyEvent; read write;
  297. property OnDblClick: TNotifyEvent; read write;
  298. property OnKeyDown: TKeyEvent; read write;
  299. property OnKeyPress: TKeyPressEvent; read write;
  300. property OnKeyUp: TKeyEvent; read write;
  301. end;
  302. TNewEdit = class(TEdit)
  303. end;
  304. TCustomMemo = class(TCustomEdit)
  305. property Lines: TStrings; read write;
  306. end;
  307. TScrollStyle = (ssNone, ssHorizontal, ssVertical, ssBoth);
  308. TMemo = class(TCustomMemo)
  309. property Alignment: TAlignment; read write;
  310. property Anchors: TAnchors; read write;
  311. property BorderStyle: TBorderStyle; read write;
  312. property Color: TColor; read write;
  313. property Font: TFont; read write;
  314. property HideSelection: Boolean; read write;
  315. property Lines: TStrings; read write;
  316. property MaxLength: Integer; read write;
  317. property ReadOnly: Boolean; read write;
  318. property ScrollBars: TScrollStyle; read write;
  319. property WantReturns: Boolean; read write;
  320. property WantTabs: Boolean; read write;
  321. property WordWrap: Boolean; read write;
  322. property OnChange: TNotifyEvent; read write;
  323. property OnClick: TNotifyEvent; read write;
  324. property OnDblClick: TNotifyEvent; read write;
  325. property OnKeyDown: TKeyEvent; read write;
  326. property OnKeyPress: TKeyPressEvent; read write;
  327. property OnKeyUp: TKeyEvent; read write;
  328. end;
  329. TNewMemo = class(TMemo)
  330. end;
  331. TCustomComboBox = class(TWinControl)
  332. property DroppedDown: Boolean; read write;
  333. property Items: TStrings; read write;
  334. property ItemIndex: Integer; read write;
  335. end;
  336. TComboBoxStyle = (csDropDown, csSimple, csDropDownList, csOwnerDrawFixed, csOwnerDrawVariable);
  337. TComboBox = class(TCustomComboBox)
  338. property Anchors: TAnchors; read write;
  339. property Color: TColor; read write;
  340. property DropDownCount: Integer; read write;
  341. property Font: TFont; read write;
  342. property MaxLength: Integer; read write;
  343. property Sorted: Boolean; read write;
  344. property Style: TComboBoxStyle; read write;
  345. property Text: String; read write;
  346. property OnChange: TNotifyEvent; read write;
  347. property OnClick: TNotifyEvent; read write;
  348. property OnDblClick: TNotifyEvent; read write;
  349. property OnDropDown: TNotifyEvent; read write;
  350. property OnKeyDown: TKeyEvent; read write;
  351. property OnKeyPress: TKeyPressEvent; read write;
  352. property OnKeyUp: TKeyEvent; read write;
  353. end;
  354. TNewComboBox = class(TComboBox)
  355. end;
  356. TButtonControl = class(TWinControl)
  357. end;
  358. TButton = class(TButtonControl)
  359. property Anchors: TAnchors; read write;
  360. property Cancel: Boolean; read write;
  361. property Caption: String; read write;
  362. property Default: Boolean; read write;
  363. property Font: TFont; read write;
  364. property ModalResult: Longint; read write;
  365. property OnClick: TNotifyEvent; read write;
  366. end;
  367. TNewButton = class(TButton)
  368. end;
  369. TCustomCheckBox = class(TButtonControl)
  370. end;
  371. TCheckBoxState = (cbUnchecked, cbChecked, cbGrayed);
  372. TCheckBox = class(TCustomCheckBox)
  373. property Alignment: TAlignment; read write;
  374. property AllowGrayed: Boolean; read write;
  375. property Anchors: TAnchors; read write;
  376. property Caption: String; read write;
  377. property Checked: Boolean; read write;
  378. property Color: TColor; read write;
  379. property Font: TFont; read write;
  380. property State: TCheckBoxState; read write;
  381. property OnClick: TNotifyEvent; read write;
  382. end;
  383. TNewCheckBox = class(TCheckBox)
  384. end;
  385. TRadioButton = class(TButtonControl)
  386. property Alignment: TAlignment; read write;
  387. property Anchors: TAnchors; read write;
  388. property Caption: String; read write;
  389. property Checked: Boolean; read write;
  390. property Color: TColor; read write;
  391. property Font: TFont; read write;
  392. property OnClick: TNotifyEvent; read write;
  393. property OnDblClick: TNotifyEvent; read write;
  394. end;
  395. TNewRadioButton = class(TRadioButton)
  396. end;
  397. TSysLinkType = (sltURL, sltID);
  398. TSysLinkEvent = procedure(Sender: TObject; const Link: string; LinkType: TSysLinkType);
  399. TCustomLinkLabel = class(TWinControl)
  400. property Alignment: TAlignment; read write;
  401. property AutoSize: Boolean; read write;
  402. property UseVisualStyle: Boolean; read write;
  403. property OnLinkClick: TSysLinkEvent; read write;
  404. end;
  405. TLinkLabel = class(TCustomLinkLabel)
  406. property Anchors: TAnchors; read write;
  407. property Caption: String; read write;
  408. property Color: TColor; read write;
  409. property Font: TFont; read write;
  410. end;
  411. TNewLinkLabel = class(TLinkLabel)
  412. function AdjustHeight: Integer;
  413. end;
  414. TCustomListBox = class(TWinControl)
  415. property Items: TStrings; read write;
  416. property ItemIndex: Integer; read write;
  417. property SelCount: Integer; read;
  418. property Selected[Index: Integer]: Boolean; read write;
  419. end;
  420. TListBoxStyle = (lbStandard, lbOwnerDrawFixed, lbOwnerDrawVariable);
  421. TListBox = class(TCustomListBox)
  422. property Anchors: TAnchors; read write;
  423. property BorderStyle: TBorderStyle; read write;
  424. property Color: TColor; read write;
  425. property Font: TFont; read write;
  426. property MultiSelect: Boolean; read write;
  427. property Sorted: Boolean; read write;
  428. property Style: TListBoxStyle; read write;
  429. property OnClick: TNotifyEvent; read write;
  430. property OnDblClick: TNotifyEvent; read write;
  431. property OnKeyDown: TKeyEvent; read write;
  432. property OnKeyPress: TKeyPressEvent; read write;
  433. property OnKeyUp: TKeyEvent; read write;
  434. end;
  435. TNewListBox = class(TListBox)
  436. end;
  437. TBevelKind = (bkNone, bkTile, bkSoft, bkFlat);
  438. TBevelShape = (bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine, bsSpacer);
  439. TBevelStyle = (bsLowered, bsRaised);
  440. TBevel = class(TGraphicControl)
  441. property Anchors: TAnchors; read write;
  442. property Shape: TBevelShape; read write;
  443. property Style: TBevelStyle; read write;
  444. end;
  445. TCustomPanel = class(TCustomControl)
  446. end;
  447. TPanelBevel = (bvNone, bvLowered, bvRaised, bvSpace);
  448. TBevelWidth = Longint;
  449. TBorderWidth = Longint;
  450. TPanel = class(TCustomPanel)
  451. property Alignment: TAlignment; read write;
  452. property Anchors: TAnchors; read write;
  453. property BevelInner: TPanelBevel; read write;
  454. property BevelKind: TBevelKind; read write;
  455. property BevelOuter: TPanelBevel; read write;
  456. property BevelWidth: TBevelWidth; read write;
  457. property BorderWidth: TBorderWidth; read write;
  458. property BorderStyle: TBorderStyle; read write;
  459. property Caption: String; read write;
  460. property Color: TColor; read write;
  461. property Font: TFont; read write;
  462. property OnClick: TNotifyEvent; read write;
  463. property OnDblClick: TNotifyEvent; read write;
  464. end;
  465. TNewStaticText = class(TWinControl)
  466. function AdjustHeight: Integer;
  467. property Anchors: TAnchors; read write;
  468. property AutoSize: Boolean; read write;
  469. property Caption: String; read write;
  470. property Color: TColor; read write;
  471. property FocusControl: TWinControl; read write;
  472. property Font: TFont; read write;
  473. property ForceLTRReading: Boolean; read write;
  474. property ShowAccelChar: Boolean; read write;
  475. property WordWrap: Boolean; read write;
  476. property OnClick: TNotifyEvent; read write;
  477. property OnDblClick: TNotifyEvent; read write;
  478. end;
  479. TCheckItemOperation = (coUncheck, coCheck, coCheckWithChildren);
  480. TNewCheckListBox = class(TCustomListBox)
  481. function AddCheckBox(const ACaption, ASubItem: String; ALevel: Byte; AChecked, AEnabled, AHasInternalChildren, ACheckWhenParentChecked: Boolean; AObject: TObject): Integer;
  482. function AddGroup(ACaption, ASubItem: String; ALevel: Byte; AObject: TObject): Integer;
  483. function AddRadioButton(const ACaption, ASubItem: String; ALevel: Byte; AChecked, AEnabled: Boolean; AObject: TObject): Integer;
  484. function CheckItem(const Index: Integer; const AOperation: TCheckItemOperation): Boolean;
  485. property Anchors: TAnchors; read write;
  486. property Checked[Index: Integer]: Boolean; read write;
  487. property State[Index: Integer]: TCheckBoxState; read write;
  488. property ItemCaption[Index: Integer]: String; read write;
  489. property ItemEnabled[Index: Integer]: Boolean; read write;
  490. property ItemFontStyle[Index: Integer]: TFontStyles; read write;
  491. property ItemLevel[Index: Integer]: Byte; read;
  492. property ItemObject[Index: Integer]: TObject; read write;
  493. property ItemSubItem[Index: Integer]: String; read write;
  494. property SubItemFontStyle[Index: Integer]: TFontStyles; read write;
  495. property Flat: Boolean; read write;
  496. property MinItemHeight: Integer; read write;
  497. property Offset: Integer; read write;
  498. property OnClickCheck: TNotifyEvent; read write;
  499. property BorderStyle: TBorderStyle; read write;
  500. property Color: TColor; read write;
  501. property Font: TFont; read write;
  502. property Sorted: Boolean; read write;
  503. property OnClick: TNotifyEvent; read write;
  504. property OnDblClick: TNotifyEvent; read write;
  505. property OnKeyDown: TKeyEvent; read write;
  506. property OnKeyPress: TKeyPressEvent; read write;
  507. property OnKeyUp: TKeyEvent; read write;
  508. property ShowLines: Boolean; read write;
  509. property WantTabs: Boolean; read write;
  510. property RequireRadioSelection: Boolean; read write;
  511. end;
  512. TNewProgressBarState = (npbsNormal, npbsError, npbsPaused);
  513. TNewProgressBarStyle = (npbstNormal, npbstMarquee);
  514. TNewProgressBar = class(TWinControl)
  515. property Anchors: TAnchors; read write;
  516. property Min: Longint; read write;
  517. property Max: Longint; read write;
  518. property Position: Longint; read write;
  519. property State: TNewProgressBarState; read write;
  520. property Style: TNewProgressBarStyle; read write;
  521. property Visible: Boolean; read write;
  522. end;
  523. TRichEditViewer = class(TMemo)
  524. property Anchors: TAnchors; read write;
  525. property BevelKind: TBevelKind; read write;
  526. property BorderStyle: TBorderStyle; read write;
  527. property RTFText: AnsiString; write;
  528. property UseRichEdit: Boolean; read write;
  529. end;
  530. TPasswordEdit = class(TCustomEdit)
  531. property Anchors: TAnchors; read write;
  532. property AutoSelect: Boolean; read write;
  533. property AutoSize: Boolean; read write;
  534. property BorderStyle: TBorderStyle; read write;
  535. property Color: TColor; read write;
  536. property Font: TFont; read write;
  537. property HideSelection: Boolean; read write;
  538. property MaxLength: Integer; read write;
  539. property Password: Boolean; read write;
  540. property ReadOnly: Boolean; read write;
  541. property Text: String; read write;
  542. property OnChange: TNotifyEvent; read write;
  543. property OnClick: TNotifyEvent; read write;
  544. property OnDblClick: TNotifyEvent; read write;
  545. property OnKeyDown: TKeyEvent; read write;
  546. property OnKeyPress: TKeyPressEvent; read write;
  547. property OnKeyUp: TKeyEvent; read write;
  548. end;
  549. TCustomFolderTreeView = class(TWinControl)
  550. procedure ChangeDirectory(const Value: String; const CreateNewItems: Boolean);
  551. procedure CreateNewDirectory(const ADefaultName: String);
  552. property: Directory: String; read write;
  553. end;
  554. TFolderRenameEvent = procedure(Sender: TCustomFolderTreeView; var NewName: String; var Accept: Boolean);
  555. TFolderTreeView = class(TCustomFolderTreeView)
  556. property Anchors: TAnchors; read write;
  557. property OnChange: TNotifyEvent; read write;
  558. property OnRename: TFolderRenameEvent; read write;
  559. end;
  560. TStartMenuFolderTreeView = class(TCustomFolderTreeView)
  561. procedure SetPaths(const AUserPrograms, ACommonPrograms, AUserStartup, ACommonStartup: String);
  562. property Anchors: TAnchors; read write;
  563. property OnChange: TNotifyEvent; read write;
  564. property OnRename: TFolderRenameEvent; read write;
  565. end;
  566. TBitmapButton = class(TCustomControl)
  567. property Anchors: TAnchors; read write;
  568. property AutoSize: Boolean; read write;
  569. property BackColor: TColor; read write;
  570. property Bitmap: TBitmap; read write;
  571. property Caption: Boolean; read write;
  572. property Center: Boolean; read write;
  573. property PngImage: TPngImage; read write;
  574. property ReplaceColor: TColor; read write;
  575. property ReplaceWithColor: TColor; read write;
  576. property Stretch: Boolean; read write;
  577. property OnClick: TNotifyEvent; read write;
  578. property OnDblClick: TNotifyEvent; read write;
  579. end;
  580. TBitmapImage = class(TGraphicControl)
  581. property Anchors: TAnchors; read write;
  582. property AutoSize: Boolean; read write;
  583. property BackColor: TColor; read write;
  584. property Bitmap: TBitmap; read write;
  585. property Center: Boolean; read write;
  586. property PngImage: TPngImage; read write;
  587. property ReplaceColor: TColor; read write;
  588. property ReplaceWithColor: TColor; read write;
  589. property Stretch: Boolean; read write;
  590. property OnClick: TNotifyEvent; read write;
  591. property OnDblClick: TNotifyEvent; read write;
  592. end;
  593. TNewNotebook = class(TWinControl)
  594. function FindNextPage(CurPage: TNewNotebookPage; GoForward: Boolean): TNewNotebookPage;
  595. property Anchors: TAnchors; read write;
  596. property PageCount: Integer; read write;
  597. property Pages[Index: Integer]: TNewNotebookPage; read;
  598. property ActivePage: TNewNotebookPage; read write;
  599. end;
  600. TNewNotebookPage = class(TCustomControl)
  601. property Color: TColor; read write;
  602. property Notebook: TNewNotebook; read write;
  603. property PageIndex: Integer; read write;
  604. end;
  605. TWizardPageNotifyEvent = procedure(Sender: TWizardPage);
  606. TWizardPageButtonEvent = function(Sender: TWizardPage): Boolean;
  607. TWizardPageCancelEvent = procedure(Sender: TWizardPage; var ACancel, AConfirm: Boolean);
  608. TWizardPageShouldSkipEvent = function(Sender: TWizardPage): Boolean;
  609. TWizardPage = class(TComponent)
  610. property ID: Integer; read;
  611. property Caption: String; read write;
  612. property Description: String; read write;
  613. property Surface: TNewNotebookPage; read;
  614. property SurfaceColor: TColor; read;
  615. property SurfaceHeight: Integer; read;
  616. property SurfaceWidth: Integer; read;
  617. property OnActivate: TWizardPageNotifyEvent; read write;
  618. property OnBackButtonClick: TWizardPageButtonEvent; read write;
  619. property OnCancelButtonClick: TWizardPageCancelEvent; read write;
  620. property OnNextButtonClick: TWizardPageButtonEvent; read write;
  621. property OnShouldSkipPage: TWizardPageShouldSkipEvent; read write;
  622. end;
  623. TInputQueryWizardPage = class(TWizardPage)
  624. function Add(const APrompt: String; const APassword: Boolean): Integer;
  625. property Edits[Index: Integer]: TPasswordEdit; read;
  626. property PromptLabels[Index: Integer]: TNewStaticText; read;
  627. property SubCaptionLabel: TNewStaticText; read;
  628. property Values[Index: Integer]: String; read write;
  629. end;
  630. TInputOptionWizardPage = class(TWizardPage)
  631. function Add(const ACaption: String): Integer;
  632. function AddEx(const ACaption: String; const ALevel: Byte; const AExclusive: Boolean): Integer;
  633. property CheckListBox: TNewCheckListBox; read;
  634. property SelectedValueIndex: Integer; read write;
  635. property SubCaptionLabel: TNewStaticText; read;
  636. property Values[Index: Integer]: Boolean; read write;
  637. end;
  638. TInputDirWizardPage = class(TWizardPage)
  639. function Add(const APrompt: String): Integer;
  640. property Buttons[Index: Integer]: TNewButton; read;
  641. property Edits[Index: Integer]: TEdit; read;
  642. property NewFolderName: String; read write;
  643. property PromptLabels[Index: Integer]: TNewStaticText; read;
  644. property SubCaptionLabel: TNewStaticText; read;
  645. property Values[Index: Integer]: String; read write;
  646. end;
  647. TInputFileWizardPage = class(TWizardPage)
  648. function Add(const APrompt, AFilter, ADefaultExtension: String): Integer;
  649. property Buttons[Index: Integer]: TNewButton; read;
  650. property Edits[Index: Integer]: TEdit; read;
  651. property PromptLabels[Index: Integer]: TNewStaticText; read;
  652. property SubCaptionLabel: TNewStaticText; read;
  653. property Values[Index: Integer]: String; read write;
  654. property IsSaveButton[Index: Integer]: Boolean; read write;
  655. end;
  656. TOutputMsgWizardPage = class(TWizardPage)
  657. property MsgLabel: TNewStaticText; read;
  658. end;
  659. TOutputMsgMemoWizardPage = class(TWizardPage)
  660. property RichEditViewer: TRichEditViewer; read;
  661. property SubCaptionLabel: TNewStaticText; read;
  662. end;
  663. TOutputProgressWizardPage = class(TWizardPage)
  664. procedure Hide;
  665. property Msg1Label: TNewStaticText; read;
  666. property Msg2Label: TNewStaticText; read;
  667. property ProgressBar: TNewProgressBar; read;
  668. procedure SetProgress(const Position, Max: Longint);
  669. procedure SetText(const Msg1, Msg2: String);
  670. procedure Show;
  671. end;
  672. TOutputMarqueeProgressWizardPage = class(TOutputProgressWizardPage)
  673. procedure Animate;
  674. end;
  675. TDownloadWizardPage = class(TOutputProgressWizardPage)
  676. property AbortButton: TNewButton; read;
  677. property AbortedByUser: Boolean; read;
  678. function Add(const Url, BaseName, RequiredSHA256OfFile: String): Integer;
  679. function AddWithISSigVerify(const Url, ISSigUrl, BaseName: String; const AllowedKeysRuntimeIDs: TStringList): Integer;
  680. function AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
  681. function AddExWithISSigVerify(const Url, ISSigUrl, BaseName, UserName, Password: String; const AllowedKeysRuntimeIDs: TStringList: Integer;
  682. procedure Clear;
  683. function Download: Int64;
  684. property LastBaseNameOrUrl: String; read;
  685. property ShowBaseNameInsteadOfUrl: Boolean; read write;
  686. end;
  687. TExtractionWizardPage = class(TOutputProgressWizardPage)
  688. property AbortButton: TNewButton; read;
  689. property AbortedByUser: Boolean; read;
  690. function Add(const ArchiveFileName, DestDir: String; const FullPaths: Boolean): Integer;
  691. function AddEx(const ArchiveFileName, DestDir, Password: String; const FullPaths: Boolean): Integer;
  692. procedure Clear;
  693. procedure Extract;
  694. property ShowArchiveInsteadOfFile: Boolean; read write;
  695. end;
  696. TUIStateForm = class(TForm)
  697. end;
  698. TSetupForm = class(TUIStateForm)
  699. function CalculateButtonWidth(const ButtonCaptions: array of String): Integer;
  700. function ShouldSizeX: Boolean;
  701. function ShouldSizeY: Boolean;
  702. procedure FlipSizeAndCenterIfNeeded(const ACenterInsideControl: Boolean; const CenterInsideControlCtl: TWinControl; const CenterInsideControlInsideClientArea: Boolean);
  703. property ControlsFlipped: Boolean; read;
  704. property FlipControlsOnShow: Boolean; read write;
  705. property KeepSizeY: Boolean; read; write;
  706. property RightToLeft: Boolean; read;
  707. property SizeAndCenterOnShow: Boolean; read write;
  708. end;
  709. TWizardForm = class(TSetupForm)
  710. property CancelButton: TNewButton; read;
  711. property NextButton: TNewButton; read;
  712. property BackButton: TNewButton; read;
  713. property OuterNotebook: TNotebook; read;
  714. property InnerNotebook: TNotebook; read;
  715. property WelcomePage: TNewNotebookPage; read;
  716. property InnerPage: TNewNotebookPage; read;
  717. property FinishedPage: TNewNotebookPage; read;
  718. property LicensePage: TNewNotebookPage; read;
  719. property PasswordPage: TNewNotebookPage; read;
  720. property InfoBeforePage: TNewNotebookPage; read;
  721. property UserInfoPage: TNewNotebookPage; read;
  722. property SelectDirPage: TNewNotebookPage; read;
  723. property SelectComponentsPage: TNewNotebookPage; read;
  724. property SelectProgramGroupPage: TNewNotebookPage; read;
  725. property SelectTasksPage: TNewNotebookPage; read;
  726. property ReadyPage: TNewNotebookPage; read;
  727. property PreparingPage: TNewNotebookPage; read;
  728. property InstallingPage: TNewNotebookPage; read;
  729. property InfoAfterPage: TNewNotebookPage; read;
  730. property DiskSpaceLabel: TNewStaticText; read;
  731. property DirEdit: TEdit; read;
  732. property GroupEdit: TNewEdit; read;
  733. property NoIconsCheck: TNewCheckBox; read;
  734. property PasswordLabel: TNewStaticText; read;
  735. property PasswordEdit: TPasswordEdit; read;
  736. property PasswordEditLabel: TNewStaticText; read;
  737. property ReadyMemo: TNewMemo; read;
  738. property TypesCombo: TNewComboBox; read;
  739. property Bevel: TBevel; read;
  740. property WizardBitmapImage: TBitmapImage; read;
  741. property WelcomeLabel1: TNewStaticText; read;
  742. property InfoBeforeMemo: TRichEditViewer; read;
  743. property InfoBeforeClickLabel: TNewStaticText; read;
  744. property MainPanel: TPanel; read;
  745. property Bevel1: TBevel; read;
  746. property PageNameLabel: TNewStaticText; read;
  747. property PageDescriptionLabel: TNewStaticText; read;
  748. property WizardSmallBitmapImage: TBitmapImage; read;
  749. property ReadyLabel: TNewStaticText; read;
  750. property FinishedLabel: TNewStaticText; read;
  751. property YesRadio: TNewRadioButton; read;
  752. property NoRadio: TNewRadioButton; read;
  753. property WizardBitmapImage2: TBitmapImage; read;
  754. property WelcomeLabel2: TNewStaticText; read;
  755. property LicenseLabel1: TNewStaticText; read;
  756. property LicenseMemo: TRichEditViewer; read;
  757. property InfoAfterMemo: TRichEditViewer; read;
  758. property InfoAfterClickLabel: TNewStaticText; read;
  759. property ComponentsList: TNewCheckListBox; read;
  760. property ComponentsDiskSpaceLabel: TNewStaticText; read;
  761. property BeveledLabel: TNewStaticText; read;
  762. property StatusLabel: TNewStaticText; read;
  763. property FilenameLabel: TNewStaticText; read;
  764. property ProgressGauge: TNewProgressBar; read;
  765. property SelectDirLabel: TNewStaticText; read;
  766. property SelectStartMenuFolderLabel: TNewStaticText; read;
  767. property SelectComponentsLabel: TNewStaticText; read;
  768. property SelectTasksLabel: TNewStaticText; read;
  769. property LicenseAcceptedRadio: TNewRadioButton; read;
  770. property LicenseNotAcceptedRadio: TNewRadioButton; read;
  771. property UserInfoNameLabel: TNewStaticText; read;
  772. property UserInfoNameEdit: TNewEdit; read;
  773. property UserInfoOrgLabel: TNewStaticText; read;
  774. property UserInfoOrgEdit: TNewEdit; read;
  775. property PreparingErrorBitmapImage: TBitmapImage; read;
  776. property PreparingLabel: TNewStaticText; read;
  777. property FinishedHeadingLabel: TNewStaticText; read;
  778. property UserInfoSerialLabel: TNewStaticText; read;
  779. property UserInfoSerialEdit: TNewEdit; read;
  780. property TasksList: TNewCheckListBox; read;
  781. property RunList: TNewCheckListBox; read;
  782. property DirBrowseButton: TNewButton; read;
  783. property GroupBrowseButton: TNewButton; read;
  784. property SelectDirBitmapImage: TBitmapImage; read;
  785. property SelectGroupBitmapImage: TBitmapImage; read;
  786. property SelectDirBrowseLabel: TNewStaticText; read;
  787. property SelectStartMenuFolderBrowseLabel: TNewStaticText; read;
  788. property PreparingYesRadio: TNewRadioButton; read;
  789. property PreparingNoRadio: TNewRadioButton; read;
  790. property PreparingMemo: TNewMemo; read;
  791. property CurPageID: Integer; read;
  792. function AdjustLabelHeight(ALabel: TNewStaticText): Integer;
  793. function AdjustLinkLabelHeight(ALinkLabel: TNewLinkLabel): Integer;
  794. procedure IncTopDecHeight(AControl: TControl; Amount: Integer);
  795. property PrevAppDir: String; read;
  796. end;
  797. TUninstallProgressForm = class(TSetupForm)
  798. property OuterNotebook: TNewNotebook; read;
  799. property InnerPage: TNewNotebookPage; read;
  800. property InnerNotebook: TNewNotebook; read;
  801. property InstallingPage: TNewNotebookPage; read;
  802. property MainPanel: TPanel; read;
  803. property PageNameLabel: TNewStaticText; read;
  804. property PageDescriptionLabel: TNewStaticText; read;
  805. property WizardSmallBitmapImage: TBitmapImage; read;
  806. property Bevel1: TBevel; read;
  807. property StatusLabel: TNewStaticText; read;
  808. property ProgressBar: TNewProgressBar; read;
  809. property BeveledLabel: TNewStaticText; read;
  810. property Bevel: TBevel; read;
  811. property CancelButton: TNewButton; read;
  812. end;