Changeset 502 for trunk/Packages
- Timestamp:
- Dec 23, 2023, 1:50:31 PM (11 months ago)
- Location:
- trunk/Packages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r501 r502 100 100 {$IFNDEF DPI} 101 101 function ScaleToNative(Value: Integer): Integer; 102 function ScaleToNativeDist(Base, Value: Integer): Integer; 102 103 function ScaleFromNative(Value: Integer): Integer; 103 104 {$ENDIF} … … 1652 1653 end; 1653 1654 1655 function ScaleToNativeDist(Base, Value: Integer): Integer; 1656 begin 1657 Result := Value; 1658 end; 1659 1654 1660 function ScaleFromNative(Value: Integer): Integer; 1655 1661 begin -
trunk/Packages/DpiControls/Dpi.StdCtrls.pas
r476 r502 171 171 protected 172 172 function GetNativeControl: Controls.TControl; override; 173 function GetNativeScrollBar: StdCtrls.TScrollBar; virtual; 173 174 public 174 175 NativeScrollBar: StdCtrls.TScrollBar; … … 392 393 function TScrollBar.GetKind: TScrollBarKind; 393 394 begin 394 Result := NativeScrollBar.Kind;395 Result := GetNativeScrollBar.Kind; 395 396 end; 396 397 397 398 function TScrollBar.GetMax: Integer; 398 399 begin 399 Result := NativeScrollBar.Max;400 Result := GetNativeScrollBar.Max; 400 401 end; 401 402 402 403 function TScrollBar.GetMin: Integer; 403 404 begin 404 Result := NativeScrollBar.Min;405 Result := GetNativeScrollBar.Min; 405 406 end; 406 407 407 408 function TScrollBar.GetOnChange: TNotifyEvent; 408 409 begin 409 Result := NativeScrollBar.OnChange;410 Result := GetNativeScrollBar.OnChange; 410 411 end; 411 412 412 413 function TScrollBar.GetPageSize: Integer; 413 414 begin 414 Result := NativeScrollBar.PageSize;415 Result := GetNativeScrollBar.PageSize; 415 416 end; 416 417 417 418 function TScrollBar.GetPosition: Integer; 418 419 begin 419 Result := NativeScrollBar.Position;420 Result := GetNativeScrollBar.Position; 420 421 end; 421 422 422 423 procedure TScrollBar.SetKind(AValue: TScrollBarKind); 423 424 begin 424 NativeScrollBar.Kind := AValue;425 GetNativeScrollBar.Kind := AValue; 425 426 end; 426 427 427 428 procedure TScrollBar.SetMax(AValue: Integer); 428 429 begin 429 NativeScrollBar.Max := AValue;430 GetNativeScrollBar.Max := AValue; 430 431 end; 431 432 432 433 procedure TScrollBar.SetMin(AValue: Integer); 433 434 begin 434 NativeScrollBar.Min := Avalue;435 GetNativeScrollBar.Min := Avalue; 435 436 end; 436 437 437 438 procedure TScrollBar.SetOnChange(AValue: TNotifyEvent); 438 439 begin 439 NativeScrollBar.OnChange := AValue;440 GetNativeScrollBar.OnChange := AValue; 440 441 end; 441 442 442 443 procedure TScrollBar.SetPageSize(AValue: Integer); 443 444 begin 444 NativeScrollBar.PageSize := AValue;445 GetNativeScrollBar.PageSize := AValue; 445 446 end; 446 447 447 448 procedure TScrollBar.SetPosition(AValue: Integer); 448 449 begin 449 NativeScrollBar.Position := AValue;450 GetNativeScrollBar.Position := AValue; 450 451 end; 451 452 452 453 function TScrollBar.GetNativeControl: Controls.TControl; 454 begin 455 Result := GetNativeScrollBar; 456 end; 457 458 function TScrollBar.GetNativeScrollBar: StdCtrls.TScrollBar; 453 459 begin 454 460 if not Assigned(NativeScrollBar) then NativeScrollBar := StdCtrls.TScrollBar.Create(nil);
Note:
See TracChangeset
for help on using the changeset viewer.