isxclasses.pas 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  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. TAlign = (alNone, alTop, alBottom, alLeft, alRight, alClient);
  146. TAnchorKind = (akLeft, akTop, akRight, akBottom);
  147. TAnchors = set of TAnchorKind;
  148. TCursor = Integer;
  149. { 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 }
  150. TControl = class(TComponent)
  151. constructor Create(AOwner: TComponent);
  152. procedure BringToFront;
  153. procedure Hide;
  154. procedure Invalidate;
  155. procedure Refresh;
  156. procedure Repaint;
  157. procedure SendToBack;
  158. procedure Show;
  159. procedure Update;
  160. procedure SetBounds(ALeft, ATop, AWidth, AHeight: Integer);
  161. property Left: Integer; read write;
  162. property Top: Integer; read write;
  163. property Width: Integer; read write;
  164. property Height: Integer; read write;
  165. property Hint: String; read write;
  166. property Align: TAlign; read write;
  167. property ClientHeight: Longint; read write;
  168. property ClientWidth: Longint; read write;
  169. property ShowHint: Boolean; read write;
  170. property Visible: Boolean; read write;
  171. property Enabled: Boolean; read write;
  172. property Cursor: TCursor; read write;
  173. end;
  174. TWinControl = class(TControl)
  175. property Parent: TWinControl; read write;
  176. property ParentBackground: Boolean; read write;
  177. property Handle: Longint; read write;
  178. property Showing: Boolean; read;
  179. property TabOrder: Integer; read write;
  180. property TabStop: Boolean; read write;
  181. function CanFocus: Boolean;
  182. function Focused: Boolean;
  183. property Controls[Index: Integer]: TControl; read;
  184. property ControlCount: Integer; read;
  185. end;
  186. TGraphicControl = class(TControl)
  187. end;
  188. TCustomControl = class(TWinControl)
  189. end;
  190. TScrollingWinControl = class(TWinControl)
  191. procedure ScrollInView(AControl: TControl);
  192. end;
  193. TFormBorderStyle = (bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin);
  194. TBorderIcon = (biSystemMenu, biMinimize, biMaximize, biHelp);
  195. TBorderIcons = set of TBorderIcon;
  196. TConstraintSize = 0..MaxInt;
  197. TSizeConstraints = class(TPersistent);
  198. property MaxHeight: TConstraintSize; read write;
  199. property MaxWidth: TConstraintSize; read write;
  200. property MinHeight: TConstraintSize; read write;
  201. property MinWidth: TConstraintSize; read write;
  202. end;
  203. TFormStyle = (fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop);
  204. TPopupMode = (pmNone, pmAuto, pmExplicit);
  205. TPosition = (poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter);
  206. TCloseAction = (caNone, caHide, caFree, caMinimize);
  207. TCloseEvent = procedure(Sender: TObject; var Action: TCloseAction);
  208. TCloseQueryEvent = procedure(Sender: TObject; var CanClose: Boolean);
  209. TEShiftState = (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble);
  210. TShiftState = set of TEShiftState;
  211. TKeyEvent = procedure(Sender: TObject; var Key: Word; Shift: TShiftState);
  212. TKeyPressEvent = procedure(Sender: TObject; var Key: Char);
  213. TForm = class(TScrollingWinControl)
  214. constructor CreateNew(AOwner: TComponent);
  215. procedure Close;
  216. procedure Hide;
  217. procedure Show;
  218. function ShowModal: Integer;
  219. procedure Release;
  220. property Active: Boolean; read;
  221. property ActiveControl: TWinControl; read write;
  222. property Anchors: TAnchors; read write;
  223. property AutoScroll: Boolean; read write;
  224. property BorderIcons: TBorderIcons; read write;
  225. property BorderStyle: TFormBorderStyle; read write;
  226. property Caption: String; read write;
  227. property Color: TColor; read write;
  228. property Constraints: TSizeConstraints; read write;
  229. property Font: TFont; read write;
  230. property FormStyle: TFormStyle; read write;
  231. property KeyPreview: Boolean; read write;
  232. property PopupMode: TPopupMode; read write;
  233. property PopupParent: TForm; read write;
  234. property Position: TPosition; read write;
  235. property OnActivate: TNotifyEvent; read write;
  236. property OnClick: TNotifyEvent; read write;
  237. property OnDblClick: TNotifyEvent; read write;
  238. property OnClose: TCloseEvent; read write;
  239. property OnCloseQuery: TCloseQueryEvent; read write;
  240. property OnCreate: TNotifyEvent; read write;
  241. property OnDestroy: TNotifyEvent; read write;
  242. property OnDeactivate: TNotifyEvent; read write;
  243. property OnHide: TNotifyEvent; read write;
  244. property OnKeyDown: TKeyEvent; read write;
  245. property OnKeyPress: TKeyPressEvent; read write;
  246. property OnKeyUp: TKeyEvent; read write;
  247. property OnResize: TNotifyEvent; read write;
  248. property OnShow: TNotifyEvent; read write;
  249. end;
  250. TCustomLabel = class(TGraphicControl)
  251. end;
  252. TAlignment = (taLeftJustify, taRightJustify, taCenter);
  253. TLabel = class(TCustomLabel)
  254. property Alignment: TAlignment; read write;
  255. property Anchors: TAnchors; read write;
  256. property AutoSize: Boolean; read write;
  257. property Caption: String; read write;
  258. property Color: TColor; read write;
  259. property FocusControl: TWinControl; read write;
  260. property Font: TFont; read write;
  261. property WordWrap: Boolean; read write;
  262. property OnClick: TNotifyEvent; read write;
  263. property OnDblClick: TNotifyEvent; read write;
  264. end;
  265. TCustomEdit = class(TWinControl)
  266. procedure Clear;
  267. procedure ClearSelection;
  268. procedure SelectAll;
  269. property Modified: Boolean; read write;
  270. property SelLength: Integer; read write;
  271. property SelStart: Integer; read write;
  272. property SelText: String; read write;
  273. property Text: String; read write;
  274. end;
  275. TBorderStyle = TFormBorderStyle;
  276. TEditCharCase = (ecNormal, ecUpperCase, ecLowerCase);
  277. TEdit = class(TCustomEdit)
  278. property Anchors: TAnchors; read write;
  279. property AutoSelect: Boolean; read write;
  280. property AutoSize: Boolean; read write;
  281. property BorderStyle: TBorderStyle; read write;
  282. property CharCase: TEditCharCase; read write;
  283. property Color: TColor; read write;
  284. property Font: TFont; read write;
  285. property HideSelection: Boolean; read write;
  286. property MaxLength: Integer; read write;
  287. property PasswordChar: Char; read write;
  288. property ReadOnly: Boolean; read write;
  289. property Text: String; read write;
  290. property OnChange: TNotifyEvent; read write;
  291. property OnClick: TNotifyEvent; read write;
  292. property OnDblClick: TNotifyEvent; read write;
  293. property OnKeyDown: TKeyEvent; read write;
  294. property OnKeyPress: TKeyPressEvent; read write;
  295. property OnKeyUp: TKeyEvent; read write;
  296. end;
  297. TNewEdit = class(TEdit)
  298. end;
  299. TCustomMemo = class(TCustomEdit)
  300. property Lines: TStrings; read write;
  301. end;
  302. TScrollStyle = (ssNone, ssHorizontal, ssVertical, ssBoth);
  303. TMemo = class(TCustomMemo)
  304. property Alignment: TAlignment; read write;
  305. property Anchors: TAnchors; read write;
  306. property BorderStyle: TBorderStyle; read write;
  307. property Color: TColor; read write;
  308. property Font: TFont; read write;
  309. property HideSelection: Boolean; read write;
  310. property Lines: TStrings; read write;
  311. property MaxLength: Integer; read write;
  312. property ReadOnly: Boolean; read write;
  313. property ScrollBars: TScrollStyle; read write;
  314. property WantReturns: Boolean; read write;
  315. property WantTabs: Boolean; read write;
  316. property WordWrap: Boolean; read write;
  317. property OnChange: TNotifyEvent; read write;
  318. property OnClick: TNotifyEvent; read write;
  319. property OnDblClick: TNotifyEvent; read write;
  320. property OnKeyDown: TKeyEvent; read write;
  321. property OnKeyPress: TKeyPressEvent; read write;
  322. property OnKeyUp: TKeyEvent; read write;
  323. end;
  324. TNewMemo = class(TMemo)
  325. end;
  326. TCustomComboBox = class(TWinControl)
  327. property DroppedDown: Boolean; read write;
  328. property Items: TStrings; read write;
  329. property ItemIndex: Integer; read write;
  330. end;
  331. TComboBoxStyle = (csDropDown, csSimple, csDropDownList, csOwnerDrawFixed, csOwnerDrawVariable);
  332. TComboBox = class(TCustomComboBox)
  333. property Anchors: TAnchors; read write;
  334. property Color: TColor; read write;
  335. property DropDownCount: Integer; read write;
  336. property Font: TFont; read write;
  337. property MaxLength: Integer; read write;
  338. property Sorted: Boolean; read write;
  339. property Style: TComboBoxStyle; read write;
  340. property Text: String; read write;
  341. property OnChange: TNotifyEvent; read write;
  342. property OnClick: TNotifyEvent; read write;
  343. property OnDblClick: TNotifyEvent; read write;
  344. property OnDropDown: TNotifyEvent; read write;
  345. property OnKeyDown: TKeyEvent; read write;
  346. property OnKeyPress: TKeyPressEvent; read write;
  347. property OnKeyUp: TKeyEvent; read write;
  348. end;
  349. TNewComboBox = class(TComboBox)
  350. end;
  351. TButtonControl = class(TWinControl)
  352. end;
  353. TButton = class(TButtonControl)
  354. property Anchors: TAnchors; read write;
  355. property Cancel: Boolean; read write;
  356. property Caption: String; read write;
  357. property Default: Boolean; read write;
  358. property Font: TFont; read write;
  359. property ModalResult: Longint; read write;
  360. property OnClick: TNotifyEvent; read write;
  361. end;
  362. TNewButton = class(TButton)
  363. end;
  364. TCustomCheckBox = class(TButtonControl)
  365. end;
  366. TCheckBoxState = (cbUnchecked, cbChecked, cbGrayed);
  367. TCheckBox = class(TCustomCheckBox)
  368. property Alignment: TAlignment; read write;
  369. property AllowGrayed: Boolean; read write;
  370. property Anchors: TAnchors; read write;
  371. property Caption: String; read write;
  372. property Checked: Boolean; read write;
  373. property Color: TColor; read write;
  374. property Font: TFont; read write;
  375. property State: TCheckBoxState; read write;
  376. property OnClick: TNotifyEvent; read write;
  377. end;
  378. TNewCheckBox = class(TCheckBox)
  379. end;
  380. TRadioButton = class(TButtonControl)
  381. property Alignment: TAlignment; read write;
  382. property Anchors: TAnchors; read write;
  383. property Caption: String; read write;
  384. property Checked: Boolean; read write;
  385. property Color: TColor; read write;
  386. property Font: TFont; read write;
  387. property OnClick: TNotifyEvent; read write;
  388. property OnDblClick: TNotifyEvent; read write;
  389. end;
  390. TNewRadioButton = class(TRadioButton)
  391. end;
  392. TSysLinkType = (sltURL, sltID);
  393. TSysLinkEvent = procedure(Sender: TObject; const Link: string; LinkType: TSysLinkType);
  394. TCustomLinkLabel = class(TWinControl)
  395. property Alignment: TAlignment; read write;
  396. property AutoSize: Boolean; read write;
  397. property UseVisualStyle: Boolean; read write;
  398. property OnLinkClick: TSysLinkEvent; read write;
  399. end;
  400. TLinkLabel = class(TCustomLinkLabel)
  401. property Anchors: TAnchors; read write;
  402. property Caption: String; read write;
  403. property Color: TColor; read write;
  404. property Font: TFont; read write;
  405. end;
  406. TNewLinkLabel = class(TLinkLabel)
  407. function AdjustHeight: Integer;
  408. end;
  409. TCustomListBox = class(TWinControl)
  410. property Items: TStrings; read write;
  411. property ItemIndex: Integer; read write;
  412. property SelCount: Integer; read;
  413. property Selected[Index: Integer]: Boolean; read write;
  414. end;
  415. TListBoxStyle = (lbStandard, lbOwnerDrawFixed, lbOwnerDrawVariable);
  416. TListBox = class(TCustomListBox)
  417. property Anchors: TAnchors; read write;
  418. property BorderStyle: TBorderStyle; read write;
  419. property Color: TColor; read write;
  420. property Font: TFont; read write;
  421. property MultiSelect: Boolean; read write;
  422. property Sorted: Boolean; read write;
  423. property Style: TListBoxStyle; read write;
  424. property OnClick: TNotifyEvent; read write;
  425. property OnDblClick: TNotifyEvent; read write;
  426. property OnKeyDown: TKeyEvent; read write;
  427. property OnKeyPress: TKeyPressEvent; read write;
  428. property OnKeyUp: TKeyEvent; read write;
  429. end;
  430. TNewListBox = class(TListBox)
  431. end;
  432. TBevelKind = (bkNone, bkTile, bkSoft, bkFlat);
  433. TBevelShape = (bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine, bsSpacer);
  434. TBevelStyle = (bsLowered, bsRaised);
  435. TBevel = class(TGraphicControl)
  436. property Anchors: TAnchors; read write;
  437. property Shape: TBevelShape; read write;
  438. property Style: TBevelStyle; read write;
  439. end;
  440. TCustomPanel = class(TCustomControl)
  441. end;
  442. TPanelBevel = (bvNone, bvLowered, bvRaised, bvSpace);
  443. TBevelWidth = Longint;
  444. TBorderWidth = Longint;
  445. TPanel = class(TCustomPanel)
  446. property Alignment: TAlignment; read write;
  447. property Anchors: TAnchors; read write;
  448. property BevelInner: TPanelBevel; read write;
  449. property BevelKind: TBevelKind; read write;
  450. property BevelOuter: TPanelBevel; read write;
  451. property BevelWidth: TBevelWidth; read write;
  452. property BorderWidth: TBorderWidth; read write;
  453. property BorderStyle: TBorderStyle; read write;
  454. property Caption: String; read write;
  455. property Color: TColor; read write;
  456. property Font: TFont; read write;
  457. property OnClick: TNotifyEvent; read write;
  458. property OnDblClick: TNotifyEvent; read write;
  459. end;
  460. TNewStaticText = class(TWinControl)
  461. function AdjustHeight: Integer;
  462. property Anchors: TAnchors; read write;
  463. property AutoSize: Boolean; read write;
  464. property Caption: String; read write;
  465. property Color: TColor; read write;
  466. property FocusControl: TWinControl; read write;
  467. property Font: TFont; read write;
  468. property ForceLTRReading: Boolean; read write;
  469. property ShowAccelChar: Boolean; read write;
  470. property WordWrap: Boolean; read write;
  471. property OnClick: TNotifyEvent; read write;
  472. property OnDblClick: TNotifyEvent; read write;
  473. end;
  474. TCheckItemOperation = (coUncheck, coCheck, coCheckWithChildren);
  475. TNewCheckListBox = class(TCustomListBox)
  476. function AddCheckBox(const ACaption, ASubItem: String; ALevel: Byte; AChecked, AEnabled, AHasInternalChildren, ACheckWhenParentChecked: Boolean; AObject: TObject): Integer;
  477. function AddGroup(ACaption, ASubItem: String; ALevel: Byte; AObject: TObject): Integer;
  478. function AddRadioButton(const ACaption, ASubItem: String; ALevel: Byte; AChecked, AEnabled: Boolean; AObject: TObject): Integer;
  479. function CheckItem(const Index: Integer; const AOperation: TCheckItemOperation): Boolean;
  480. property Anchors: TAnchors; read write;
  481. property Checked[Index: Integer]: Boolean; read write;
  482. property State[Index: Integer]: TCheckBoxState; read write;
  483. property ItemCaption[Index: Integer]: String; read write;
  484. property ItemEnabled[Index: Integer]: Boolean; read write;
  485. property ItemFontStyle[Index: Integer]: TFontStyles; read write;
  486. property ItemLevel[Index: Integer]: Byte; read;
  487. property ItemObject[Index: Integer]: TObject; read write;
  488. property ItemSubItem[Index: Integer]: String; read write;
  489. property SubItemFontStyle[Index: Integer]: TFontStyles; read write;
  490. property Flat: Boolean; read write;
  491. property MinItemHeight: Integer; read write;
  492. property Offset: Integer; read write;
  493. property OnClickCheck: TNotifyEvent; read write;
  494. property BorderStyle: TBorderStyle; read write;
  495. property Color: TColor; read write;
  496. property Font: TFont; read write;
  497. property Sorted: Boolean; read write;
  498. property OnClick: TNotifyEvent; read write;
  499. property OnDblClick: TNotifyEvent; read write;
  500. property OnKeyDown: TKeyEvent; read write;
  501. property OnKeyPress: TKeyPressEvent; read write;
  502. property OnKeyUp: TKeyEvent; read write;
  503. property ShowLines: Boolean; read write;
  504. property WantTabs: Boolean; read write;
  505. property RequireRadioSelection: Boolean; read write;
  506. end;
  507. TNewProgressBarState = (npbsNormal, npbsError, npbsPaused);
  508. TNewProgressBarStyle = (npbstNormal, npbstMarquee);
  509. TNewProgressBar = class(TWinControl)
  510. property Anchors: TAnchors; read write;
  511. property Min: Longint; read write;
  512. property Max: Longint; read write;
  513. property Position: Longint; read write;
  514. property State: TNewProgressBarState; read write;
  515. property Style: TNewProgressBarStyle; read write;
  516. property Visible: Boolean; read write;
  517. end;
  518. TRichEditViewer = class(TMemo)
  519. property Anchors: TAnchors; read write;
  520. property BevelKind: TBevelKind; read write;
  521. property BorderStyle: TBorderStyle; read write;
  522. property RTFText: AnsiString; write;
  523. property UseRichEdit: Boolean; read write;
  524. end;
  525. TPasswordEdit = class(TCustomEdit)
  526. property Anchors: TAnchors; read write;
  527. property AutoSelect: Boolean; read write;
  528. property AutoSize: Boolean; read write;
  529. property BorderStyle: TBorderStyle; read write;
  530. property Color: TColor; read write;
  531. property Font: TFont; read write;
  532. property HideSelection: Boolean; read write;
  533. property MaxLength: Integer; read write;
  534. property Password: Boolean; read write;
  535. property ReadOnly: Boolean; read write;
  536. property Text: String; read write;
  537. property OnChange: TNotifyEvent; read write;
  538. property OnClick: TNotifyEvent; read write;
  539. property OnDblClick: TNotifyEvent; read write;
  540. property OnKeyDown: TKeyEvent; read write;
  541. property OnKeyPress: TKeyPressEvent; read write;
  542. property OnKeyUp: TKeyEvent; read write;
  543. end;
  544. TCustomFolderTreeView = class(TWinControl)
  545. procedure ChangeDirectory(const Value: String; const CreateNewItems: Boolean);
  546. procedure CreateNewDirectory(const ADefaultName: String);
  547. property: Directory: String; read write;
  548. end;
  549. TFolderRenameEvent = procedure(Sender: TCustomFolderTreeView; var NewName: String; var Accept: Boolean);
  550. TFolderTreeView = class(TCustomFolderTreeView)
  551. property Anchors: TAnchors; read write;
  552. property OnChange: TNotifyEvent; read write;
  553. property OnRename: TFolderRenameEvent; read write;
  554. end;
  555. TStartMenuFolderTreeView = class(TCustomFolderTreeView)
  556. procedure SetPaths(const AUserPrograms, ACommonPrograms, AUserStartup, ACommonStartup: String);
  557. property Anchors: TAnchors; read write;
  558. property OnChange: TNotifyEvent; read write;
  559. property OnRename: TFolderRenameEvent; read write;
  560. end;
  561. TBitmapImage = class(TGraphicControl)
  562. property Anchors: TAnchors; read write;
  563. property AutoSize: Boolean; read write;
  564. property BackColor: TColor; read write;
  565. property Center: Boolean; read write;
  566. property Bitmap: TBitmap; read write;
  567. property ReplaceColor: TColor; read write;
  568. property ReplaceWithColor: TColor; read write;
  569. property Stretch: Boolean; read write;
  570. property OnClick: TNotifyEvent; read write;
  571. property OnDblClick: TNotifyEvent; read write;
  572. end;
  573. TNewNotebook = class(TWinControl)
  574. function FindNextPage(CurPage: TNewNotebookPage; GoForward: Boolean): TNewNotebookPage;
  575. property Anchors: TAnchors; read write;
  576. property PageCount: Integer; read write;
  577. property Pages[Index: Integer]: TNewNotebookPage; read;
  578. property ActivePage: TNewNotebookPage; read write;
  579. end;
  580. TNewNotebookPage = class(TCustomControl)
  581. property Color: TColor; read write;
  582. property Notebook: TNewNotebook; read write;
  583. property PageIndex: Integer; read write;
  584. end;
  585. TWizardPageNotifyEvent = procedure(Sender: TWizardPage);
  586. TWizardPageButtonEvent = function(Sender: TWizardPage): Boolean;
  587. TWizardPageCancelEvent = procedure(Sender: TWizardPage; var ACancel, AConfirm: Boolean);
  588. TWizardPageShouldSkipEvent = function(Sender: TWizardPage): Boolean;
  589. TWizardPage = class(TComponent)
  590. property ID: Integer; read;
  591. property Caption: String; read write;
  592. property Description: String; read write;
  593. property Surface: TNewNotebookPage; read;
  594. property SurfaceColor: TColor; read;
  595. property SurfaceHeight: Integer; read;
  596. property SurfaceWidth: Integer; read;
  597. property OnActivate: TWizardPageNotifyEvent; read write;
  598. property OnBackButtonClick: TWizardPageButtonEvent; read write;
  599. property OnCancelButtonClick: TWizardPageCancelEvent; read write;
  600. property OnNextButtonClick: TWizardPageButtonEvent; read write;
  601. property OnShouldSkipPage: TWizardPageShouldSkipEvent; read write;
  602. end;
  603. TInputQueryWizardPage = class(TWizardPage)
  604. function Add(const APrompt: String; const APassword: Boolean): Integer;
  605. property Edits[Index: Integer]: TPasswordEdit; read;
  606. property PromptLabels[Index: Integer]: TNewStaticText; read;
  607. property SubCaptionLabel: TNewStaticText; read;
  608. property Values[Index: Integer]: String; read write;
  609. end;
  610. TInputOptionWizardPage = class(TWizardPage)
  611. function Add(const ACaption: String): Integer;
  612. function AddEx(const ACaption: String; const ALevel: Byte; const AExclusive: Boolean): Integer;
  613. property CheckListBox: TNewCheckListBox; read;
  614. property SelectedValueIndex: Integer; read write;
  615. property SubCaptionLabel: TNewStaticText; read;
  616. property Values[Index: Integer]: Boolean; read write;
  617. end;
  618. TInputDirWizardPage = class(TWizardPage)
  619. function Add(const APrompt: String): Integer;
  620. property Buttons[Index: Integer]: TNewButton; read;
  621. property Edits[Index: Integer]: TEdit; read;
  622. property NewFolderName: String; read write;
  623. property PromptLabels[Index: Integer]: TNewStaticText; read;
  624. property SubCaptionLabel: TNewStaticText; read;
  625. property Values[Index: Integer]: String; read write;
  626. end;
  627. TInputFileWizardPage = class(TWizardPage)
  628. function Add(const APrompt, AFilter, ADefaultExtension: String): Integer;
  629. property Buttons[Index: Integer]: TNewButton; read;
  630. property Edits[Index: Integer]: TEdit; read;
  631. property PromptLabels[Index: Integer]: TNewStaticText; read;
  632. property SubCaptionLabel: TNewStaticText; read;
  633. property Values[Index: Integer]: String; read write;
  634. property IsSaveButton[Index: Integer]: Boolean; read write;
  635. end;
  636. TOutputMsgWizardPage = class(TWizardPage)
  637. property MsgLabel: TNewStaticText; read;
  638. end;
  639. TOutputMsgMemoWizardPage = class(TWizardPage)
  640. property RichEditViewer: TRichEditViewer; read;
  641. property SubCaptionLabel: TNewStaticText; read;
  642. end;
  643. TOutputProgressWizardPage = class(TWizardPage)
  644. procedure Hide;
  645. property Msg1Label: TNewStaticText; read;
  646. property Msg2Label: TNewStaticText; read;
  647. property ProgressBar: TNewProgressBar; read;
  648. procedure SetProgress(const Position, Max: Longint);
  649. procedure SetText(const Msg1, Msg2: String);
  650. procedure Show;
  651. end;
  652. TOutputMarqueeProgressWizardPage = class(TOutputProgressWizardPage)
  653. procedure Animate;
  654. end;
  655. TDownloadWizardPage = class(TOutputProgressWizardPage)
  656. property AbortButton: TNewButton; read;
  657. property AbortedByUser: Boolean; read;
  658. function Add(const Url, BaseName, RequiredSHA256OfFile: String): Integer;
  659. function AddWithISSigVerify(const Url, ISSigUrl, BaseName: String; const AllowedKeysRuntimeIDs: TStringList): Integer;
  660. function AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
  661. function AddExWithISSigVerify(const Url, ISSigUrl, BaseName, UserName, Password: String; const AllowedKeysRuntimeIDs: TStringList: Integer;
  662. procedure Clear;
  663. function Download: Int64;
  664. property LastBaseNameOrUrl: String; read;
  665. property ShowBaseNameInsteadOfUrl: Boolean; read write;
  666. end;
  667. TExtractionWizardPage = class(TOutputProgressWizardPage)
  668. property AbortButton: TNewButton; read;
  669. property AbortedByUser: Boolean; read;
  670. function Add(const ArchiveFileName, DestDir: String; const FullPaths: Boolean): Integer;
  671. function AddEx(const ArchiveFileName, DestDir, Password: String; const FullPaths: Boolean): Integer;
  672. procedure Clear;
  673. procedure Extract;
  674. property ShowArchiveInsteadOfFile: Boolean; read write;
  675. end;
  676. TUIStateForm = class(TForm)
  677. end;
  678. TSetupForm = class(TUIStateForm)
  679. function CalculateButtonWidth(const ButtonCaptions: array of String): Integer;
  680. function ShouldSizeX: Boolean;
  681. function ShouldSizeY: Boolean;
  682. procedure FlipSizeAndCenterIfNeeded(const ACenterInsideControl: Boolean; const CenterInsideControlCtl: TWinControl; const CenterInsideControlInsideClientArea: Boolean);
  683. property ControlsFlipped: Boolean; read;
  684. property FlipControlsOnShow: Boolean; read write;
  685. property KeepSizeY: Boolean; read; write;
  686. property RightToLeft: Boolean; read;
  687. property SizeAndCenterOnShow: Boolean; read write;
  688. end;
  689. TWizardForm = class(TSetupForm)
  690. property CancelButton: TNewButton; read;
  691. property NextButton: TNewButton; read;
  692. property BackButton: TNewButton; read;
  693. property OuterNotebook: TNotebook; read;
  694. property InnerNotebook: TNotebook; read;
  695. property WelcomePage: TNewNotebookPage; read;
  696. property InnerPage: TNewNotebookPage; read;
  697. property FinishedPage: TNewNotebookPage; read;
  698. property LicensePage: TNewNotebookPage; read;
  699. property PasswordPage: TNewNotebookPage; read;
  700. property InfoBeforePage: TNewNotebookPage; read;
  701. property UserInfoPage: TNewNotebookPage; read;
  702. property SelectDirPage: TNewNotebookPage; read;
  703. property SelectComponentsPage: TNewNotebookPage; read;
  704. property SelectProgramGroupPage: TNewNotebookPage; read;
  705. property SelectTasksPage: TNewNotebookPage; read;
  706. property ReadyPage: TNewNotebookPage; read;
  707. property PreparingPage: TNewNotebookPage; read;
  708. property InstallingPage: TNewNotebookPage; read;
  709. property InfoAfterPage: TNewNotebookPage; read;
  710. property DiskSpaceLabel: TNewStaticText; read;
  711. property DirEdit: TEdit; read;
  712. property GroupEdit: TNewEdit; read;
  713. property NoIconsCheck: TNewCheckBox; read;
  714. property PasswordLabel: TNewStaticText; read;
  715. property PasswordEdit: TPasswordEdit; read;
  716. property PasswordEditLabel: TNewStaticText; read;
  717. property ReadyMemo: TNewMemo; read;
  718. property TypesCombo: TNewComboBox; read;
  719. property Bevel: TBevel; read;
  720. property WizardBitmapImage: TBitmapImage; read;
  721. property WelcomeLabel1: TNewStaticText; read;
  722. property InfoBeforeMemo: TRichEditViewer; read;
  723. property InfoBeforeClickLabel: TNewStaticText; read;
  724. property MainPanel: TPanel; read;
  725. property Bevel1: TBevel; read;
  726. property PageNameLabel: TNewStaticText; read;
  727. property PageDescriptionLabel: TNewStaticText; read;
  728. property WizardSmallBitmapImage: TBitmapImage; read;
  729. property ReadyLabel: TNewStaticText; read;
  730. property FinishedLabel: TNewStaticText; read;
  731. property YesRadio: TNewRadioButton; read;
  732. property NoRadio: TNewRadioButton; read;
  733. property WizardBitmapImage2: TBitmapImage; read;
  734. property WelcomeLabel2: TNewStaticText; read;
  735. property LicenseLabel1: TNewStaticText; read;
  736. property LicenseMemo: TRichEditViewer; read;
  737. property InfoAfterMemo: TRichEditViewer; read;
  738. property InfoAfterClickLabel: TNewStaticText; read;
  739. property ComponentsList: TNewCheckListBox; read;
  740. property ComponentsDiskSpaceLabel: TNewStaticText; read;
  741. property BeveledLabel: TNewStaticText; read;
  742. property StatusLabel: TNewStaticText; read;
  743. property FilenameLabel: TNewStaticText; read;
  744. property ProgressGauge: TNewProgressBar; read;
  745. property SelectDirLabel: TNewStaticText; read;
  746. property SelectStartMenuFolderLabel: TNewStaticText; read;
  747. property SelectComponentsLabel: TNewStaticText; read;
  748. property SelectTasksLabel: TNewStaticText; read;
  749. property LicenseAcceptedRadio: TNewRadioButton; read;
  750. property LicenseNotAcceptedRadio: TNewRadioButton; read;
  751. property UserInfoNameLabel: TNewStaticText; read;
  752. property UserInfoNameEdit: TNewEdit; read;
  753. property UserInfoOrgLabel: TNewStaticText; read;
  754. property UserInfoOrgEdit: TNewEdit; read;
  755. property PreparingErrorBitmapImage: TBitmapImage; read;
  756. property PreparingLabel: TNewStaticText; read;
  757. property FinishedHeadingLabel: TNewStaticText; read;
  758. property UserInfoSerialLabel: TNewStaticText; read;
  759. property UserInfoSerialEdit: TNewEdit; read;
  760. property TasksList: TNewCheckListBox; read;
  761. property RunList: TNewCheckListBox; read;
  762. property DirBrowseButton: TNewButton; read;
  763. property GroupBrowseButton: TNewButton; read;
  764. property SelectDirBitmapImage: TBitmapImage; read;
  765. property SelectGroupBitmapImage: TBitmapImage; read;
  766. property SelectDirBrowseLabel: TNewStaticText; read;
  767. property SelectStartMenuFolderBrowseLabel: TNewStaticText; read;
  768. property PreparingYesRadio: TNewRadioButton; read;
  769. property PreparingNoRadio: TNewRadioButton; read;
  770. property PreparingMemo: TNewMemo; read;
  771. property CurPageID: Integer; read;
  772. function AdjustLabelHeight(ALabel: TNewStaticText): Integer;
  773. function AdjustLinkLabelHeight(ALinkLabel: TNewLinkLabel): Integer;
  774. procedure IncTopDecHeight(AControl: TControl; Amount: Integer);
  775. property PrevAppDir: String; read;
  776. end;
  777. TUninstallProgressForm = class(TSetupForm)
  778. property OuterNotebook: TNewNotebook; read;
  779. property InnerPage: TNewNotebookPage; read;
  780. property InnerNotebook: TNewNotebook; read;
  781. property InstallingPage: TNewNotebookPage; read;
  782. property MainPanel: TPanel; read;
  783. property PageNameLabel: TNewStaticText; read;
  784. property PageDescriptionLabel: TNewStaticText; read;
  785. property WizardSmallBitmapImage: TBitmapImage; read;
  786. property Bevel1: TBevel; read;
  787. property StatusLabel: TNewStaticText; read;
  788. property ProgressBar: TNewProgressBar; read;
  789. property BeveledLabel: TNewStaticText; read;
  790. property Bevel: TBevel; read;
  791. property CancelButton: TNewButton; read;
  792. end;