Changeset 346 for trunk/LocalPlayer/PVSB.pas
- Timestamp:
- Apr 6, 2021, 7:19:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/PVSB.pas
r172 r346 32 32 procedure Init(Max, PageSize: Integer); 33 33 procedure SetPos(Pos: Integer); 34 function Process(const m: TMessage): boolean;34 function Process(const Msg: TMessage): boolean; 35 35 function ProcessMouseWheel(Delta: Integer): Boolean; 36 36 procedure Show(Visible: boolean); … … 65 65 end; 66 66 67 function TPVScrollBar.Process(const m: TMessage): boolean;67 function TPVScrollBar.Process(const Msg: TMessage): boolean; 68 68 var 69 69 NewPos: integer; … … 73 73 else 74 74 begin 75 if ( m.wParam and $ffff) in [SB_THUMBPOSITION, SB_THUMBTRACK] then75 if (Msg.wParam and $ffff) in [SB_THUMBPOSITION, SB_THUMBTRACK] then 76 76 begin 77 result := (( m.wParam shr 16) and $ffff) <> ScrollBar.Position;78 ScrollBar.Position := ( m.wParam shr 16) and $ffff;77 result := ((Msg.wParam shr 16) and $ffff) <> ScrollBar.Position; 78 ScrollBar.Position := (Msg.wParam shr 16) and $ffff; 79 79 end else begin 80 case ( m.wParam and $ffff) of80 case (Msg.wParam and $ffff) of 81 81 SB_LINEUP: 82 82 NewPos := ScrollBar.Position - 1; … … 95 95 NewPos := Max - ScrollBar.PageSize + 1; 96 96 result := NewPos <> ScrollBar.Position; 97 if (NewPos <> ScrollBar.Position) or (( m.wParam and $ffff) = SB_ENDSCROLL) then97 if (NewPos <> ScrollBar.Position) or ((Msg.wParam and $ffff) = SB_ENDSCROLL) then 98 98 begin 99 99 ScrollBar.Position := NewPos;
Note:
See TracChangeset
for help on using the changeset viewer.