Ignore:
Timestamp:
Jan 19, 2017, 9:04:16 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: To work scrollbar correctly again on Linux where Max behaves differently when on Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r89 r90  
    1313  Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase,
    1414  LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls,
    15   Forms, Menus, ExtCtrls, dateutils, Platform, ButtonB, ButtonC, EOTButton, Area;
     15  Forms, Menus, ExtCtrls, dateutils, Platform, ButtonB, ButtonC, EOTButton, Area, Types;
    1616
    1717const
     
    173173    procedure FormCreate(Sender: TObject);
    174174    procedure FormDestroy(Sender: TObject);
     175    procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
     176      WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
    175177    procedure Timer1Timer(Sender: TObject);
    176178    procedure MapBoxMouseDown(Sender: TObject; Button: TMouseButton;
     
    35173519    if AILogo[i] <> nil then
    35183520      FreeAndNil(AILogo[i]);
     3521end;
     3522
     3523procedure TMainScreen.FormMouseWheel(Sender: TObject; Shift: TShiftState;
     3524  WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
     3525begin
     3526  if sb.ProcessMouseWheel(WheelDelta) then begin
     3527    PanelPaint;
     3528    Update;
     3529  end;
    35193530end;
    35203531
Note: See TracChangeset for help on using the changeset viewer.