50
50
WSLCLClasses, WSControls, WSExtCtrls, WSToolwin, WSFactory;
55
TWSCustomPageClass = class of TWSCustomPage;
56
TWSCustomPage = class(TWSWinControl)
58
class procedure UpdateProperties(const ACustomPage: TCustomPage); virtual;
61
{ TWSCustomTabControl }
63
TWSCustomTabControl = class(TWSWinControl)
65
class procedure AddPage(const ATabControl: TCustomTabControl; const AChild: TCustomPage; const AIndex: integer); virtual;
66
class procedure MovePage(const ATabControl: TCustomTabControl; const AChild: TCustomPage; const NewIndex: integer); virtual;
67
class procedure RemovePage(const ATabControl: TCustomTabControl; const AIndex: integer); virtual;
69
class function GetNotebookMinTabHeight(const AWinControl: TWinControl): integer; virtual;
70
class function GetNotebookMinTabWidth(const AWinControl: TWinControl): integer; virtual;
71
class function GetTabIndexAtPos(const ATabControl: TCustomTabControl; const AClientPos: TPoint): integer; virtual;
72
class function GetTabRect(const ATabControl: TCustomTabControl; const AIndex: Integer): TRect; virtual;
73
class function GetCapabilities: TCTabControlCapabilities; virtual;
74
class procedure SetImageList(const ATabControl: TCustomTabControl; const AImageList: TCustomImageList); virtual;
75
class procedure SetPageIndex(const ATabControl: TCustomTabControl; const AIndex: integer); virtual;
76
class procedure SetTabCaption(const ATabControl: TCustomTabControl; const AChild: TCustomPage; const AText: string); virtual;
77
class procedure SetTabPosition(const ATabControl: TCustomTabControl; const ATabPosition: TTabPosition); virtual;
78
class procedure ShowTabs(const ATabControl: TCustomTabControl; AShowTabs: boolean); virtual;
79
class procedure UpdateProperties(const ATabControl: TCustomTabControl); virtual;
81
TWSCustomTabControlClass = class of TWSCustomTabControl;
55
85
TWSStatusBarClass = class of TWSStatusBar;
99
128
class procedure ItemDelete(const ALV: TCustomListView; const AIndex: Integer); virtual;
100
129
class function ItemDisplayRect(const ALV: TCustomListView; const AIndex, ASubItem: Integer; ACode: TDisplayCode): TRect; virtual;
130
class procedure ItemExchange(const ALV: TCustomListView; AItem: TListItem; const AIndex1, AIndex2: Integer); virtual;
131
class procedure ItemMove(const ALV: TCustomListView; AItem: TListItem; const AFromIndex, AToIndex: Integer); virtual;
101
132
class function ItemGetChecked(const ALV: TCustomListView; const AIndex: Integer; const AItem: TListItem): Boolean; virtual;
102
133
class function ItemGetPosition(const ALV: TCustomListView; const AIndex: Integer): TPoint; virtual;
103
134
class function ItemGetState(const ALV: TCustomListView; const AIndex: Integer; const AItem: TListItem; const AState: TListItemState; out AIsSet: Boolean): Boolean; virtual; // returns True if supported
138
169
class procedure SetProperty(const ALV: TCustomListView; const AProp: TListViewProperty; const AIsSet: Boolean); virtual;
139
170
class procedure SetProperties(const ALV: TCustomListView; const AProps: TListViewProperties); virtual;
140
171
class procedure SetScrollBars(const ALV: TCustomListView; const AValue: TScrollStyle); virtual;
141
class procedure SetSort(const ALV: TCustomListView; const AType: TSortType; const AColumn: Integer); virtual;
172
class procedure SetSort(const ALV: TCustomListView; const AType: TSortType; const AColumn: Integer;
173
const ASortDirection: TSortDirection); virtual;
142
174
class procedure SetViewOrigin(const ALV: TCustomListView; const AValue: TPoint); virtual;
143
175
class procedure SetViewStyle(const ALV: TCustomListView; const Avalue: TViewStyle); virtual;
178
TWSCustomListViewClass = class of TWSCustomListView;
148
182
TWSListView = class(TWSCustomListView)
270
class procedure TWSCustomPage.UpdateProperties(const ACustomPage: TCustomPage);
274
{ TWSCustomTabControl }
276
{ -----------------------------------------------------------------------------
277
Method: TWSCustomTabControl.AddPage
278
Params: ATabControl - A notebook control
279
AChild - Page to insert
280
AIndex - The position in the notebook to insert the page
283
Adds a new page to a notebook
284
------------------------------------------------------------------------------}
285
class procedure TWSCustomTabControl.AddPage(const ATabControl: TCustomTabControl; const AChild: TCustomPage; const AIndex: integer);
289
{------------------------------------------------------------------------------
290
Method: TWSCustomTabControl.MovePage
291
Params: ATabControl - The notebook control
292
AChild - The page to move
293
NewIndex - The new index of the page
296
Moves a page in a notebook control
297
------------------------------------------------------------------------------}
298
class procedure TWSCustomTabControl.MovePage(const ATabControl: TCustomTabControl;
299
const AChild: TCustomPage; const NewIndex: integer);
303
{------------------------------------------------------------------------------
304
Method: TWSCustomTabControl.RemovePage
305
Params: ATabControl - The notebook control
306
AIndex - The index of the page to delete
309
Removes a page from a notebook control
310
------------------------------------------------------------------------------}
311
class procedure TWSCustomTabControl.RemovePage(const ATabControl: TCustomTabControl; const AIndex: integer);
315
{-------------------------------------------------------------------------------
316
function TWSCustomTabControl.GetNotebookMinTabHeight(
317
const AWinControl: TWinControl): integer;
319
Returns the minimum height of the horizontal tabs of a notebook. That is the
320
Notebook with TabPosition in [tpTop,tpBottom] without the client panel.
321
-------------------------------------------------------------------------------}
322
class function TWSCustomTabControl.GetNotebookMinTabHeight(
323
const AWinControl: TWinControl): integer;
328
{-------------------------------------------------------------------------------
329
function TWSCustomTabControl.GetNotebookMinTabWidth(
330
const AWinControl: TWinControl): integer;
332
Returns the minimum width of the vertical tabs of a notebook. That is the
333
Notebook with TabPosition in [tpLeft,tpRight] without the client panel.
334
-------------------------------------------------------------------------------}
335
class function TWSCustomTabControl.GetNotebookMinTabWidth(const AWinControl: TWinControl
341
class function TWSCustomTabControl.GetTabIndexAtPos(const ATabControl: TCustomTabControl;
342
const AClientPos: TPoint): integer;
347
class function TWSCustomTabControl.GetTabRect(const ATabControl: TCustomTabControl;
348
const AIndex: Integer): TRect;
350
Result := Rect(-1,-1,-1,-1);
353
class function TWSCustomTabControl.GetCapabilities: TCTabControlCapabilities;
358
class procedure TWSCustomTabControl.SetImageList(
359
const ATabControl: TCustomTabControl; const AImageList: TCustomImageList);
363
class procedure TWSCustomTabControl.SetPageIndex(const ATabControl: TCustomTabControl;
364
const AIndex: integer);
368
class procedure TWSCustomTabControl.SetTabCaption(const ATabControl: TCustomTabControl;
369
const AChild: TCustomPage; const AText: string);
373
class procedure TWSCustomTabControl.SetTabPosition(const ATabControl: TCustomTabControl;
374
const ATabPosition: TTabPosition);
378
class procedure TWSCustomTabControl.ShowTabs(const ATabControl: TCustomTabControl;
383
class procedure TWSCustomTabControl.UpdateProperties(
384
const ATabControl: TCustomTabControl);
586
759
if Done then exit;
587
760
WSRegisterStatusBar;
588
761
RegisterPropertyToSkip(TStatusBar, 'Font', 'VCL compatibility property', '');
762
RegisterPropertyToSkip(TStatusBar, 'TabOrder', 'VCL compatibility property', '');
763
RegisterPropertyToSkip(TStatusBar, 'TabStop', 'VCL compatibility property', '');
589
764
RegisterPropertyToSkip(TStatusBar, 'UseSystemFont', 'VCL compatibility property', '');
590
765
// if not WSRegisterStatusBar then
591
766
// RegisterWSComponent(TStatusBar, TWSStatusBar);
612
787
RegisterPropertyToSkip(TPageControl, 'Style', 'VCL compatibility property', '');
613
788
RegisterPropertyToSkip(TPageControl, 'HotTrack', 'VCL compatibility property', '');
614
789
RegisterPropertyToSkip(TPageControl, 'MultiLine', 'VCL compatibility property', '');
790
RegisterPropertyToSkip(TPageControl, 'TabWidth', 'VCL compatibility property', '');
791
RegisterPropertyToSkip(TPageControl, 'TabHeight', 'VCL compatibility property', '');
792
RegisterPropertyToSkip(TPageControl, 'OnPageChanged', 'Was removed in Laz 0.9.31 due to incompatibilities with OnChange, which does the same thing.', '');
615
793
// if not WSRegisterPageControl then
616
794
// RegisterWSComponent(TPageControl, TWSPageControl);