Changeset 503 for trunk/Packages/DpiControls
- Timestamp:
- Dec 23, 2023, 8:59:07 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/DpiControls/Dpi.StdCtrls.pas
r502 r503 93 93 { TButton } 94 94 95 TButton = class(T Control)95 TButton = class(TWinControl) 96 96 private 97 97 protected 98 function GetNative Control: Controls.TControl; override;98 function GetNativeWinControl: Controls.TWinControl; override; 99 99 public 100 100 NativeButton: StdCtrls.TButton; … … 155 155 { TScrollBar } 156 156 157 TScrollBar = class(T Control)157 TScrollBar = class(TWinControl) 158 158 private 159 159 function GetKind: TScrollBarKind; … … 170 170 procedure SetPosition(AValue: Integer); 171 171 protected 172 function GetNative Control: Controls.TControl; override;172 function GetNativeWinControl: Controls.TWinControl; override; 173 173 function GetNativeScrollBar: StdCtrls.TScrollBar; virtual; 174 174 public … … 178 178 published 179 179 property PageSize: Integer read GetPageSize write SetPageSize; 180 property Min: Integer read GetMin write SetMin ;181 property Max: Integer read GetMax write SetMax ;182 property Position: Integer read GetPosition write SetPosition ;183 property Kind: TScrollBarKind read GetKind write SetKind ;180 property Min: Integer read GetMin write SetMin default 0; 181 property Max: Integer read GetMax write SetMax default 100; 182 property Position: Integer read GetPosition write SetPosition default 0; 183 property Kind: TScrollBarKind read GetKind write SetKind default sbHorizontal; 184 184 property OnChange: TNotifyEvent read GetOnChange write SetOnChange; 185 185 property Visible; … … 197 197 begin 198 198 RegisterComponents(DpiControlsComponentPaletteName, [TEdit, TButton, 199 TScrollBar ]);199 TScrollBar, TListBox, TCheckBox, TComboBox]); 200 200 end; 201 201 … … 377 377 { TButton } 378 378 379 function TButton.GetNative Control: Controls.TControl;379 function TButton.GetNativeWinControl: Controls.TWinControl; 380 380 begin 381 381 if not Assigned(NativeButton) then NativeButton := StdCtrls.TButton.Create(nil); … … 451 451 end; 452 452 453 function TScrollBar.GetNative Control: Controls.TControl;453 function TScrollBar.GetNativeWinControl: Controls.TWinControl; 454 454 begin 455 455 Result := GetNativeScrollBar;
Note:
See TracChangeset
for help on using the changeset viewer.