widgets, MW move, remove trick used to get public prop

This commit is contained in:
Basile Burg 2017-03-02 06:38:33 +01:00
parent 67e2de71a7
commit a899c73bc8
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
2 changed files with 3 additions and 9 deletions

View File

@ -1468,7 +1468,7 @@ object CEMainForm: TCEMainForm
OnCloseQuery = FormCloseQuery
OnDropFiles = FormDropFiles
ShowHint = True
LCLVersion = '1.6.2.0'
LCLVersion = '1.6.4.0'
object mainMenu: TMainMenu
Images = imgList
top = 1

View File

@ -22,11 +22,6 @@ type
TCEApplicationOptions = class;
TAnchorDockSplitterEx = class(TAnchorDockSplitter)
public
property OnMouseWheel;
end;
TAsyncWait = (awNo, awYes, awCustom);
TRunnableToFolderCondition = (
@ -1348,7 +1343,6 @@ begin
accept := GetKeyShiftState = [ssCtrl];
end;
//TODO-cdocking: remove the usage of TAnchorDockSplitterEx from Laz 1.8 RC1 (OnMouseWheel public)
procedure TCEMainForm.DockSplitterMw(Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
var
offs: integer;
@ -1384,10 +1378,10 @@ begin
if site is TAnchorDockHostSite then
begin
if TAnchorDockHostSite(site).BoundSplitter.isNotNil then
TAnchorDockSplitterEx(TAnchorDockHostSite(site).BoundSplitter).OnMouseWheel:=@DockSplitterMw;
TSplitter(TAnchorDockHostSite(site).BoundSplitter).OnMouseWheel:=@DockSplitterMw;
end
else if site is TAnchorDockSplitter then
TAnchorDockSplitterEx(TAnchorDockSplitter(site)).OnMouseWheel:=@DockSplitterMw;
TSplitter(TAnchorDockSplitter(site)).OnMouseWheel:=@DockSplitterMw;
end;
end;
end;