- Timestamp:
- Dec 23, 2023, 1:50:31 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r496 r502 1918 1918 LineFeed; 1919 1919 1920 //Self.Show;1921 1920 ScrollBar.Init(Count - 1, InnerHeight div 24); 1922 1921 ScrollBar.SetPos(sbPos); -
trunk/LocalPlayer/Term.pas
r498 r502 1575 1575 TestColorDistance := abs(Integer(UnusedTribeFiles.Objects[J]) 1576 1576 shr 16 and $FF - Tribe[I].Color shr 16 and $FF) + 1577 abs(Integer(UnusedTribeFiles.Objects[J]) shr 8 and1577 Abs(Integer(UnusedTribeFiles.Objects[J]) shr 8 and 1578 1578 $FF - Tribe[I].Color shr 8 and $FF) * 3 + 1579 abs(Integer(UnusedTribeFiles.Objects[J]) and1579 Abs(Integer(UnusedTribeFiles.Objects[J]) and 1580 1580 $FF - Tribe[I].Color and $FF) * 2; 1581 1581 if TestColorDistance < ColorDistance then … … 1721 1721 AdvIcon[adConscription] := 86 + dGround; 1722 1722 1723 UnusedTribeFiles := tstringlist.Create;1723 UnusedTribeFiles := TStringList.Create; 1724 1724 UnusedTribeFiles.Sorted := True; 1725 1725 TribeNames := tstringlist.Create; -
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.