mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 20:21:12 +02:00
Finishes fixing IndexOfTabAt
git-svn-id: trunk@31781 -
This commit is contained in:
parent
f49a57bd08
commit
2214a142af
@ -393,7 +393,7 @@ end;
|
||||
|
||||
function TCustomTabControl.IndexOfTabAt(X, Y: Integer): Integer;
|
||||
begin
|
||||
Result := TWSCustomTabControlClass(WidgetSetClass).IndexOfTabAt(X, Y);
|
||||
Result := TabIndexAtClientPos(Point(X, Y));
|
||||
end;
|
||||
|
||||
function TCustomTabControl.TabToPageIndex(AIndex: integer): integer;
|
||||
|
@ -77,7 +77,6 @@ type
|
||||
class procedure SetTabPosition(const ATabControl: TCustomTabControl; const ATabPosition: TTabPosition); virtual;
|
||||
class procedure ShowTabs(const ATabControl: TCustomTabControl; AShowTabs: boolean); virtual;
|
||||
class procedure UpdateProperties(const ATabControl: TCustomTabControl); virtual;
|
||||
class function IndexOfTabAt(const X, Y: Integer): Integer; virtual;
|
||||
end;
|
||||
TWSCustomTabControlClass = class of TWSCustomTabControl;
|
||||
|
||||
@ -387,11 +386,6 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
class function TWSCustomTabControl.IndexOfTabAt(const X, Y: Integer): Integer;
|
||||
begin
|
||||
Result := -1;
|
||||
end;
|
||||
|
||||
{ TWSStatusBar }
|
||||
|
||||
class procedure TWSStatusBar.PanelUpdate(const AStatusBar: TStatusBar; PanelIndex: integer);
|
||||
|
Loading…
Reference in New Issue
Block a user