@@ -42,6 +42,21 @@ the Light VCL (LVCL), with some additions and modifications.
42
42
43
43
LLCL ChangeLog:
44
44
45
+ * Version 1.02:
46
+ Main changes and additions:
47
+ - TRadioGroup control added (not enabled by default),
48
+ - TRegistry class added (Registry.pas),
49
+ - TClipboard: SetAsText bug fix,
50
+ - TStringGrid: ColCount and RowCount bug fix,
51
+ - bug fixes when application was starting and closing,
52
+ - bug fixes and non standard ItemStrings property removed
53
+ for internal TCustomBox class,
54
+ - TForm: ShowModal bug fix (with several modal forms),
55
+ - DeleteFile and RenameFile added (SysUtils), and also
56
+ DeleteFileUTF8 and RenameFileUTF8 (FileUtil/LazFileUtils),
57
+ - internal TMemoLines et TBoxStrings classes (for TMemo and
58
+ TComboBox/TListBox controls) modified for a better LCL/VCL
59
+ compatibility (data accessing).
45
60
* Version 1.01:
46
61
Main changes and additions:
47
62
- TStringGrid control added (Grids.pas),
@@ -63,7 +78,7 @@ LLCL ChangeLog:
63
78
- a few bug fixes and some minor additions/modifications.
64
79
Note: controls and functionalities not enabled by default
65
80
can be activated by defining the corresponding option(s) in
66
- the option files LLCLOptions.inc.
81
+ the option file LLCLOptions.inc.
67
82
68
83
* Version 1.00:
69
84
- Initial public release.
@@ -110,8 +125,8 @@ modified LGPL license used for the standard LCL of Lazarus.
110
125
The files/units present in the Ligth LCL replace the main
111
126
standard files/units used inside the LCL/VCL: Classes,
112
127
ClipBrd, ComCtrls, Controls, Dialogs, ExtCtrls, FileCtrl,
113
- Forms, Graphics, Grids, IniFiles, Menus, StdCtrls, SysUtils
114
- and Variants.
128
+ Forms, Graphics, Grids, IniFiles, Menus, Registry, StdCtrls,
129
+ SysUtils and Variants.
115
130
116
131
Plus an additional unit for the VCL: XPMan.
117
132
@@ -197,6 +212,9 @@ Free Pascal: http://www.freepascal.org
197
212
Lazarus: http://www.lazarus-ide.org
198
213
Delphi: http://www.embarcadero.com
199
214
215
+ FreePascal/Lazarus forum for discussion:
216
+ http://forum.lazarus.freepascal.org/index.php/topic,30027.0.html
217
+
200
218
201
219
6. GENERAL NOTES
202
220
----------------
@@ -331,23 +349,26 @@ Delphi: http://www.embarcadero.com
331
349
332
350
7.1 CONTROL CLASSES AVAILABLE
333
351
-----------------------------
352
+
334
353
Standard: TLabel, TButton, TEdit, TMemo, TCheckBox,
335
354
TRadioButton, TGroupBox, TComboBox, TListBox,
336
- TStaticText, TMainMenu, TPopupMenu
355
+ TStaticText, TMainMenu, TPopupMenu, TRadioGroup
337
356
Additional: TImage, TTrayIcon, TStringGrid
338
357
Common: TProgressBar, TTrackBar, TXPManifest (Delphi)
339
358
Dialogs: TOpenDialog, TSaveDialog, TSelectDirectoryDialog
340
359
(FPC only, and not enabled by default)
341
360
System: TTimer
342
361
343
- Other classes: TCustomForm, TForm, TClipboard, TIniFile
362
+ Other classes: TCustomForm, TForm, TClipboard, TIniFile,
363
+ TRegistry
344
364
345
365
General variables: Application (TApplication), Mouse(TMouse),
346
366
Clipboard(TClipboard)
347
367
348
368
349
369
7.2 BASE CLASSES TREE
350
370
---------------------
371
+
351
372
(TObject)
352
373
!
353
374
TPersistent
@@ -369,6 +390,7 @@ TNonVisualControl* TVisualControl*
369
390
370
391
7.3 CLASSES DETAILS
371
392
--------------------
393
+
372
394
Standard public methods, properties and events available
373
395
[rwd] options: r=read, w=write, d=design time.
374
396
@@ -461,21 +483,24 @@ TStringList (Classes - TObject)
461
483
462
484
TStrings = TStringList
463
485
464
- TMemoLines (StdCtrls - TPersistent)
465
- constructor Create(Memo: TMemo );
486
+ TCtrlStrings (StdCtrls - TPersistent)
487
+ constructor Create(ParentCtrl: TWinControl );
466
488
destructor Destroy; override;
467
- function Add(const S: string): integer;
468
- procedure Clear;
469
- property Strings: TStrings; [rwd]
489
+ function Add(const S: string): integer; virtual;
490
+ procedure Clear; virtual;
491
+ property Count: integer; [r]
492
+ Note: TCtrlStrings is specific to the LLCL
493
+
494
+ TMemoLines (StdCtrls - TCtrlStrings)
495
+ function Add(const S: string): integer; override;
496
+ procedure Clear; override;
497
+ property Strings[index: integer]: string; default; [r]
470
498
Note: TMemoLines is specific to the LLCL
471
499
472
- TBoxStrings (SdtCtrls - TPersistent)
473
- constructor Create(Box: TCustomBox);
474
- destructor Destroy; override;
475
- function Add(const S: string): integer;
476
- procedure Clear;
477
- property Items[n: integer]: string; default; [r]
478
- property Strings: TStrings; [rw]
500
+ TBoxStrings (SdtCtrls - TCtrlStrings)
501
+ function Add(const S: string): integer; override;
502
+ procedure Clear; override;
503
+ property Items[index: integer]: string; default; [r]
479
504
Note: TBoxStrings is specific to the LLCL
480
505
481
506
TCustomBox (SdtCtrls - TWinControl)
@@ -485,7 +510,6 @@ TCustomBox (SdtCtrls - TWinControl)
485
510
property ItemCount: integer; [r]
486
511
property ItemIndex: integer; [rwd]
487
512
property Items: TBoxStrings; [r]
488
- property ItemStrings: TStrings; [rw]
489
513
property Sorted: boolean; [d]
490
514
Note: TCustomBox is specific to the LLCL
491
515
@@ -648,8 +672,8 @@ TComboBox (SdtCtrls - TCustomBox)
648
672
649
673
TEdit (StdCtrls - TWinControl)
650
674
constructor Create(AOwner: TComponent); override;
651
- property PasswordChar: Char; [d]
652
675
procedure SelectAll;
676
+ property PasswordChar: Char; [d]
653
677
property ReadOnly: boolean; [rwd]
654
678
property Text: string; [rwd]
655
679
property OnChange: TNotifyEvent; [rwd]
@@ -692,15 +716,26 @@ TPopupMenu (Menus - TMenu)
692
716
TRadioButton (SdtCtrls - TCheckBox)
693
717
constructor Create(AOwner: TComponent); override;
694
718
719
+ TRadioGroup (ExtCtrls - TGroupBox)
720
+ constructor Create(AOwner: TComponent); override;
721
+ destructor Destroy; override;
722
+ property ColumnLayout: TColumnLayout; [rw] *
723
+ property Columns: integer; [rw]
724
+ property ItemIndex: integer; [rw]
725
+ property Items: TRadioGroupStrings; [r]
726
+ *: only for FPC/Lazarus
727
+ Note: available only if LLCL_OPT_USERADIOGROUP is defined (see
728
+ the option file LLCLOptions.inc)
729
+
695
730
TStaticText (SdtCtrls - TWinControl)
696
731
constructor Create(AOwner: TComponent); override;
697
732
property BorderStyle: boolean; [d]
698
733
699
734
TOpenDialog (Dialogs - TNonVisualControl)
700
735
constructor Create(AOwner: TComponent); override;
701
736
destructor Destroy; override;
702
- property DefaultExt: string; [rwd]
703
737
function Execute: boolean; virtual;
738
+ property DefaultExt: string; [rwd]
704
739
property FileName: string; [rwd]
705
740
property Files: TStringList; [rw]
706
741
property Filter: string; [rwd]
@@ -744,11 +779,6 @@ TStringGrid (Grids - TWinControl)
744
779
property DefaultRowHeight: integer; [rwd] *4
745
780
property FixedCols: integer; [rwd] *5
746
781
property FixedRows: integer; [rwd] *6
747
- property OnCompareCells: TOnCompareCells; [rwd] *3
748
- property OnGetEditText: TGetEditEvent; [rwd]
749
- property OnHeaderClick: THdrEvent; [rwd] *3
750
- property OnSelectCell: TOnSelectCellEvent; [rwd]
751
- property OnSetEditText: TSetEditEvent; [rwd]
752
782
property Options: TGridOptions; [rd]
753
783
property Row: integer; [rw]
754
784
property RowCount: integer; [rwd]
@@ -757,6 +787,11 @@ TStringGrid (Grids - TWinControl)
757
787
property Selection: TGridRect; [r]
758
788
property SortColumn: integer; [r] *3
759
789
property SortOrder: TSortOrder; [rw] *3
790
+ property OnCompareCells: TOnCompareCells; [rwd] *3
791
+ property OnGetEditText: TGetEditEvent; [rwd]
792
+ property OnHeaderClick: THdrEvent; [rwd] *3
793
+ property OnSelectCell: TOnSelectCellEvent; [rwd]
794
+ property OnSetEditText: TSetEditEvent; [rwd]
760
795
*1: only for columns (i.e. IsColumn = True)
761
796
*2: not possible at design time for Delphi
762
797
*3: not present in the standard Delphi VCL
@@ -792,14 +827,14 @@ TTrayIcon (ExtCtrl - TNonVisualControl)
792
827
procedure Show;
793
828
procedure Hide;
794
829
procedure ShowBalloonHint;
795
- property Icon: TIcon; [rwd]
796
- property Hint: string; [rwd]
797
- property Visible: boolean; [rwd]
798
- property PopUpMenu: TPopupMenu; [rwd] *
799
830
property BalloonFlags: TBalloonFlags; [rwd]
800
831
property BalloonHint: string; [rwd] **
801
832
property BalloonTimeout: integer; [rwd] ***
802
833
property BalloonTitle: string; [rwd]
834
+ property Icon: TIcon; [rwd]
835
+ property Hint: string; [rwd]
836
+ property Visible: boolean; [rwd]
837
+ property PopUpMenu: TPopupMenu; [rwd] *
803
838
property OnDblClick: TNotifyEvent; [rwd]
804
839
*: Available if LLCL_OPT_USEMENUS is not undefined
805
840
**: Balloon notifications are possible only for Windows 2000+
@@ -878,15 +913,15 @@ TStream (Classes - TObject)
878
913
function CopyFrom(Source: TStream; Count: integer): integer;
879
914
procedure LoadFromFile(const FileName: string);
880
915
procedure LoadFromStream(aStream: TStream); virtual;
881
- property Position: integer; [rw]
882
916
function Read(var Buffer; Count: integer): integer; virtual; abstract;
883
917
procedure ReadBuffer(var Buffer; Count: integer);
884
918
procedure SaveToFile(const FileName: string);
885
919
procedure SaveToStream(aStream: TStream); virtual;
886
920
function Seek(Offset: integer; Origin: Word): integer; overload; virtual; abstract;
887
921
function Seek(Offset: int64; Origin: TSeekOrigin): int64; overload; virtual; abstract;
888
- property Size: integer; [rw]
889
922
function Write(var Buffer; Count: integer): integer; virtual; abstract;
923
+ property Position: integer; [rw]
924
+ property Size: integer; [rw]
890
925
891
926
THandleStream (Classes - TStream)
892
927
constructor Create(aHandle: THandle);
@@ -979,6 +1014,35 @@ TIniFile (IniFiles - TObject)
979
1014
property FileName: string; [r]
980
1015
Note: string date/time formats are specific in LLCL SysUtils
981
1016
1017
+ TRegistry (Registry - TObject)
1018
+ constructor Create; overload;
1019
+ destructor Destroy; override;
1020
+ procedure CloseKey;
1021
+ function CreateKey(const Key: string): boolean;
1022
+ function DeleteKey(const Key: string): boolean;
1023
+ function DeleteValue(const Name: string): boolean;
1024
+ function GetDataInfo(const ValueName: string; var Value: TRegDataInfo): boolean;
1025
+ function GetKeyInfo(var Value: TRegKeyInfo): boolean;
1026
+ procedure GetKeyNames(Strings: TStrings);
1027
+ procedure GetValueNames(Strings: TStrings);
1028
+ function KeyExists(const Key: string): boolean;
1029
+ function OpenKey(const Key: string; CanCreate: boolean): boolean;
1030
+ function OpenKeyReadOnly(const Key: String): boolean;
1031
+ function ReadBinaryData(const Name: string; var Buffer; BufSize: integer): integer;
1032
+ function ReadBool(const Name: string): boolean;
1033
+ function ReadDate(const Name: string): TDateTime;
1034
+ function ReadInteger(const Name: string): integer;
1035
+ function ReadString(const Name: string): string;
1036
+ function ValueExists(const Name: string): boolean;
1037
+ procedure WriteBinaryData(const Name: string; var Buffer; BufSize: integer);
1038
+ procedure WriteBool(const Name: string; Value: boolean);
1039
+ procedure WriteDate(const Name: string; Value: TDateTime);
1040
+ procedure WriteInteger(const Name: string; Value: integer);
1041
+ procedure WriteString(const Name, Value: string);
1042
+ property Access: longword; [rw]
1043
+ property CurrentKey: HKEY; [r]
1044
+ property RootKey: HKEY; [rw]
1045
+
982
1046
983
1047
7.4 SPECIFIC NOTES
984
1048
------------------
0 commit comments