mirror of https://gitlab.com/basile.b/dexed.git
fix, reset top splitter position before locking it
This commit is contained in:
parent
605a24c1ff
commit
c864a0ce50
|
|
@ -5,6 +5,8 @@ object CEMainForm: TCEMainForm
|
||||||
Width = 745
|
Width = 745
|
||||||
AllowDropFiles = True
|
AllowDropFiles = True
|
||||||
Caption = 'Coedit'
|
Caption = 'Coedit'
|
||||||
|
ClientHeight = 49
|
||||||
|
ClientWidth = 745
|
||||||
Icon.Data = {
|
Icon.Data = {
|
||||||
F1B500000000010001000000000001002000DBB500001600000089504E470D0A
|
F1B500000000010001000000000001002000DBB500001600000089504E470D0A
|
||||||
1A0A0000000D49484452000001000000010008060000005C72A8660000B5A249
|
1A0A0000000D49484452000001000000010008060000005C72A8660000B5A249
|
||||||
|
|
@ -1469,6 +1471,7 @@ object CEMainForm: TCEMainForm
|
||||||
OnDropFiles = FormDropFiles
|
OnDropFiles = FormDropFiles
|
||||||
ShowHint = True
|
ShowHint = True
|
||||||
LCLVersion = '1.6.0.2'
|
LCLVersion = '1.6.0.2'
|
||||||
|
Visible = False
|
||||||
object mainMenu: TMainMenu
|
object mainMenu: TMainMenu
|
||||||
Images = imgList
|
Images = imgList
|
||||||
top = 1
|
top = 1
|
||||||
|
|
|
||||||
|
|
@ -935,14 +935,20 @@ begin
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// lock space wetween the menu and the widgets
|
// lock space between the menu and the widgets
|
||||||
if GetDockSplitterOrParent(DockMaster.GetSite(fEditWidg), akTop, topsite) then
|
if GetDockSplitterOrParent(DockMaster.GetSite(fEditWidg), akTop, topsite) then
|
||||||
begin
|
begin
|
||||||
if topsite is TAnchorDockHostSite then
|
if topsite is TAnchorDockHostSite then
|
||||||
if TAnchorDockHostSite(topsite).BoundSplitter.isNotNil then
|
if TAnchorDockHostSite(topsite).BoundSplitter.isNotNil then
|
||||||
|
begin
|
||||||
|
TAnchorDockHostSite(topsite).BoundSplitter.MoveSplitter(-500);
|
||||||
TAnchorDockHostSite(topsite).BoundSplitter.OnCanOffset:= @LockTopWindow;
|
TAnchorDockHostSite(topsite).BoundSplitter.OnCanOffset:= @LockTopWindow;
|
||||||
|
end;
|
||||||
end else if GetDockSplitter(DockMaster.GetSite(fEditWidg), akTop, topsplt) then
|
end else if GetDockSplitter(DockMaster.GetSite(fEditWidg), akTop, topsplt) then
|
||||||
|
begin
|
||||||
|
topsplt.MoveSplitter(-500);
|
||||||
topsplt.OnCanOffset:= @LockTopWindow;
|
topsplt.OnCanOffset:= @LockTopWindow;
|
||||||
|
end;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue