mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 12:00:22 +02:00
Fixes the compilation of the wince widgetset and cleanup a useless define. Fixes bug #19739
git-svn-id: trunk@31701 -
This commit is contained in:
parent
14fabdf99b
commit
0c7f706dd4
@ -463,19 +463,6 @@ begin
|
|||||||
AdjustSizeNotebookPages(ANotebook);
|
AdjustSizeNotebookPages(ANotebook);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$IFDEF old}
|
|
||||||
class function TWin32WSCustomNotebook.GetPageRealIndex(const ANotebook: TCustomNotebook; AIndex: Integer): Integer;
|
|
||||||
var
|
|
||||||
X: Integer;
|
|
||||||
begin
|
|
||||||
Result := AIndex;
|
|
||||||
if csDesigning in ANotebook.ComponentState then exit;
|
|
||||||
for X := 0 to AIndex - 1 do
|
|
||||||
if ANotebook.Page[X].TabVisible = False then Dec(Result);
|
|
||||||
end;
|
|
||||||
{$ELSE}
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
procedure SendSelChangeMessage(const ANotebook: TCustomNotebook; const AHandle: HWND;
|
procedure SendSelChangeMessage(const ANotebook: TCustomNotebook; const AHandle: HWND;
|
||||||
const APageIndex: integer);
|
const APageIndex: integer);
|
||||||
var
|
var
|
||||||
|
@ -70,11 +70,6 @@ type
|
|||||||
class procedure RemovePage(const ANotebook: TCustomNotebook;
|
class procedure RemovePage(const ANotebook: TCustomNotebook;
|
||||||
const AIndex: integer); override;
|
const AIndex: integer); override;
|
||||||
|
|
||||||
{$IFDEF old}
|
|
||||||
class function GetPageRealIndex(const ANotebook: TCustomNotebook; AIndex: Integer): Integer; override;
|
|
||||||
{$ELSE}
|
|
||||||
//use ANotebook.PageToTabIndex (and .TabToPageIndex)
|
|
||||||
{$ENDIF}
|
|
||||||
class function GetTabIndexAtPos(const ANotebook: TCustomNotebook; const AClientPos: TPoint): integer; override;
|
class function GetTabIndexAtPos(const ANotebook: TCustomNotebook; const AClientPos: TPoint): integer; override;
|
||||||
class function GetTabRect(const ANotebook: TCustomNotebook; const AIndex: Integer): TRect; override;
|
class function GetTabRect(const ANotebook: TCustomNotebook; const AIndex: Integer): TRect; override;
|
||||||
class function GetCapabilities: TNoteBookCapabilities;override;
|
class function GetCapabilities: TNoteBookCapabilities;override;
|
||||||
|
@ -383,16 +383,6 @@ begin
|
|||||||
AdjustSizeNotebookPages(ANotebook);
|
AdjustSizeNotebookPages(ANotebook);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class function TWinCEWSCustomNotebook.GetPageRealIndex(const ANotebook: TCustomNotebook; AIndex: Integer): Integer;
|
|
||||||
var
|
|
||||||
X: Integer;
|
|
||||||
begin
|
|
||||||
Result := AIndex;
|
|
||||||
|
|
||||||
for X := 0 to AIndex - 1 do
|
|
||||||
if ANotebook.Page[X].TabVisible = False then Dec(Result);
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure SendSelChangeMessage(const ANotebook: TCustomNotebook; const AHandle: HWND;
|
procedure SendSelChangeMessage(const ANotebook: TCustomNotebook; const AHandle: HWND;
|
||||||
const APageIndex: integer);
|
const APageIndex: integer);
|
||||||
var
|
var
|
||||||
|
@ -66,7 +66,6 @@ type
|
|||||||
class procedure RemovePage(const ANotebook: TCustomNotebook;
|
class procedure RemovePage(const ANotebook: TCustomNotebook;
|
||||||
const AIndex: integer); override;
|
const AIndex: integer); override;
|
||||||
|
|
||||||
class function GetPageRealIndex(const ANotebook: TCustomNotebook; AIndex: Integer): Integer; override;
|
|
||||||
class function GetTabIndexAtPos(const ANotebook: TCustomNotebook; const AClientPos: TPoint): integer; override;
|
class function GetTabIndexAtPos(const ANotebook: TCustomNotebook; const AClientPos: TPoint): integer; override;
|
||||||
class function GetTabRect(const ANotebook: TCustomNotebook; const AIndex: Integer): TRect; override;
|
class function GetTabRect(const ANotebook: TCustomNotebook; const AIndex: Integer): TRect; override;
|
||||||
class function GetCapabilities: TNoteBookCapabilities;override;
|
class function GetCapabilities: TNoteBookCapabilities;override;
|
||||||
|
Loading…
Reference in New Issue
Block a user