mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 08:58:23 +02:00
Patch from bug #21707 to improve TCDPageControl close button positioning
git-svn-id: trunk@36725 -
This commit is contained in:
parent
2039c21296
commit
0fd34987dd
@ -210,7 +210,7 @@ const
|
||||
var
|
||||
ATabsStateEx: TCDCTabControlStateEx absolute AStateEx;
|
||||
lCaption: String;
|
||||
lTabWidth, i: Integer;
|
||||
lTabWidth, i, t: Integer;
|
||||
IsPainting: Boolean = False;
|
||||
begin
|
||||
ADest.Font.Assign(AStateEx.Font);
|
||||
@ -241,7 +241,12 @@ begin
|
||||
if i = ATabsStateEx.LeftmostTabVisibleIndex then IsPainting := True;
|
||||
|
||||
if IsPainting then
|
||||
begin
|
||||
t := ATabsStateEx.CurTabIndex;
|
||||
ATabsStateEx.CurTabIndex := i;
|
||||
Result := Result + GetMeasuresEx(ADest, TCDCTABCONTROL_TAB_WIDTH, AState, AStateEx);
|
||||
ATabsStateEx.CurTabIndex := t;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
TCDCTABCONTROL_CLOSE_BUTTON_POS_X:
|
||||
|
Loading…
Reference in New Issue
Block a user