mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:39:18 +02:00
fixed compilation under fpc 1.9.3
git-svn-id: trunk@5278 -
This commit is contained in:
parent
d8da29d14e
commit
db5d5464ae
@ -1,3 +1,5 @@
|
|||||||
|
// included by interfacebase.pp
|
||||||
|
|
||||||
{ $Id$ }
|
{ $Id$ }
|
||||||
{******************************************************************************
|
{******************************************************************************
|
||||||
TWidgetSet
|
TWidgetSet
|
||||||
@ -880,13 +882,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TWidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
|
function TWidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
|
||||||
Count, p4: Integer; p5, p6: PInteger; var Size: TSize): BOOL;
|
Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger;
|
||||||
|
var Size: TSize): BOOL;
|
||||||
begin
|
begin
|
||||||
|
if MaxCount<>nil then MaxCount^:=Count;
|
||||||
|
if PartialWidths<>nil then
|
||||||
|
writeln('Warning: TWidgetSet.GetTextExtentExPoint PartialWidths not implemented yet');
|
||||||
Result := GetTextExtentPoint(DC,Str,Count,Size);
|
Result := GetTextExtentPoint(DC,Str,Count,Size);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TWidgetSet.GetTextExtentPoint(DC: HDC; Str: PChar;
|
function TWidgetSet.GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer;
|
||||||
Count: Integer; var Size: TSize): Boolean;
|
var Size: TSize): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
end;
|
end;
|
||||||
@ -1398,6 +1404,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.10 2004/03/06 21:57:14 mattias
|
||||||
|
fixed compilation under fpc 1.9.3
|
||||||
|
|
||||||
Revision 1.9 2004/03/05 00:14:02 marc
|
Revision 1.9 2004/03/05 00:14:02 marc
|
||||||
* Renamed TInterfaceBase to TWidgetSet
|
* Renamed TInterfaceBase to TWidgetSet
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// included by lclintf.pp
|
||||||
|
|
||||||
(******************************************************************************
|
(******************************************************************************
|
||||||
All Winapi related stuff goes here.
|
All Winapi related stuff goes here.
|
||||||
This file is used by LCLIntf.pas
|
This file is used by LCLIntf.pas
|
||||||
@ -404,20 +406,21 @@ begin
|
|||||||
Result := InterfaceObject.GetTextColor(DC);
|
Result := InterfaceObject.GetTextColor(DC);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetTextExtentExPoint(DC: HDC; Str: PChar; Count, p4: Integer;
|
function GetTextExtentExPoint(DC: HDC; Str: PChar; Count, MaxWidth: Integer;
|
||||||
p5, p6: PInteger; var Size: TSize): BOOL;
|
MaxCount, PartialWidths: PInteger; var Size: LCLType.TSize): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := InterfaceObject.GetTextExtentExPoint(DC,Str,Count,p4,p5,p6,Size);
|
Result := InterfaceObject.GetTextExtentExPoint(DC,Str,Count,MaxWidth,MaxCount,
|
||||||
|
PartialWidths,Size);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer;
|
function GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer;
|
||||||
var Size: TSize): Boolean;
|
var Size: LCLType.TSize): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := InterfaceObject.GetTextExtentPoint(DC, Str, Count, Size);
|
Result := InterfaceObject.GetTextExtentPoint(DC, Str, Count, Size);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetTextExtentPoint32(DC: HDC; Str: PChar; Count: Integer;
|
function GetTextExtentPoint32(DC: HDC; Str: PChar; Count: Integer;
|
||||||
var Size: TSize): Boolean;
|
var Size: LCLType.TSize): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := InterfaceObject.GetTextExtentPoint32(DC, Str, Count, Size);
|
Result := InterfaceObject.GetTextExtentPoint32(DC, Str, Count, Size);
|
||||||
end;
|
end;
|
||||||
@ -1296,6 +1299,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.110 2004/03/06 21:57:14 mattias
|
||||||
|
fixed compilation under fpc 1.9.3
|
||||||
|
|
||||||
Revision 1.109 2004/02/23 08:19:04 micha
|
Revision 1.109 2004/02/23 08:19:04 micha
|
||||||
revert intf split
|
revert intf split
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// included by interfacebase.pp and lclintf.pp
|
||||||
|
|
||||||
(******************************************************************************
|
(******************************************************************************
|
||||||
All Winapi related stuff goes here.
|
All Winapi related stuff goes here.
|
||||||
This file is used by both LCLIntf.pas and InterfaceBase.pp
|
This file is used by both LCLIntf.pas and InterfaceBase.pp
|
||||||
@ -128,7 +130,7 @@ function GetSystemPaletteEntries(DC: HDC; StartIndex, NumEntries: UINT;
|
|||||||
var PaletteEntries): UINT; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
var PaletteEntries): UINT; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function GetSystemMetrics(nIndex: Integer): Integer; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetSystemMetrics(nIndex: Integer): Integer; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function GetTextColor(DC: HDC) : TColorRef; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetTextColor(DC: HDC) : TColorRef; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function GetTextExtentExPoint(DC: HDC; Str: PChar; Count, p4: Integer; p5, p6: PInteger; var Size: TSize): BOOL; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetTextExtentExPoint(DC: HDC; Str: PChar; Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger; var Size: TSize): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer; var Size: TSize): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer; var Size: TSize): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function GetTextExtentPoint32(DC: HDC; Str: PChar; Count: Integer; var Size: TSize): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetTextExtentPoint32(DC: HDC; Str: PChar; Count: Integer; var Size: TSize): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
function GetTextMetrics(DC: HDC; var TM: TTextMetric): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
function GetTextMetrics(DC: HDC; var TM: TTextMetric): Boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
|
||||||
@ -292,6 +294,9 @@ function RGB(R, G, B : Byte) : TColorRef;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.98 2004/03/06 21:57:14 mattias
|
||||||
|
fixed compilation under fpc 1.9.3
|
||||||
|
|
||||||
Revision 1.97 2004/02/23 08:19:04 micha
|
Revision 1.97 2004/02/23 08:19:04 micha
|
||||||
revert intf split
|
revert intf split
|
||||||
|
|
||||||
|
@ -1092,7 +1092,7 @@ begin
|
|||||||
if NewHeight<=0 then NewHeight:=1;
|
if NewHeight<=0 then NewHeight:=1;
|
||||||
|
|
||||||
{$IFDEF VerboseSizeMsg}
|
{$IFDEF VerboseSizeMsg}
|
||||||
LCLObject:=GetParentLCLObject(Widget);
|
LCLObject:=GetNearestLCLObject(Widget);
|
||||||
write('TGtkWidgetSet.RealizeWidgetSize Widget=',HexStr(Cardinal(Widget),8),
|
write('TGtkWidgetSet.RealizeWidgetSize Widget=',HexStr(Cardinal(Widget),8),
|
||||||
' New=',NewWidth,',',NewHeight);
|
' New=',NewWidth,',',NewHeight);
|
||||||
if (LCLObject<>nil) and (LCLObject is TControl) then begin
|
if (LCLObject<>nil) and (LCLObject is TControl) then begin
|
||||||
@ -9283,6 +9283,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.478 2004/03/06 21:57:14 mattias
|
||||||
|
fixed compilation under fpc 1.9.3
|
||||||
|
|
||||||
Revision 1.477 2004/03/06 17:12:19 mattias
|
Revision 1.477 2004/03/06 17:12:19 mattias
|
||||||
fixed CreateBrushIndirect
|
fixed CreateBrushIndirect
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ unit LCLIntf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLType, LCLProc, VCLGlobals, GraphType, InterfaceBase,
|
Strings, Math, Classes, SysUtils, LCLType, LCLProc, VCLGlobals, GraphType,
|
||||||
LResources;
|
InterfaceBase, LResources;
|
||||||
|
|
||||||
{$ifdef Trace}
|
{$ifdef Trace}
|
||||||
{$ASSERTIONS ON}
|
{$ASSERTIONS ON}
|
||||||
@ -77,12 +77,10 @@ function GetTickStep: DWord;
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
|
||||||
Strings, Math
|
|
||||||
{$IFNDEF Win32}
|
{$IFNDEF Win32}
|
||||||
, {$IFDEF Ver1_0}Linux{$ELSE}Unix{$ENDIF}
|
uses
|
||||||
|
{$IFDEF Ver1_0}Linux{$ELSE}Unix{$ENDIF};
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
;
|
|
||||||
|
|
||||||
var
|
var
|
||||||
FPredefinedClipboardFormats:
|
FPredefinedClipboardFormats:
|
||||||
@ -184,6 +182,9 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.14 2004/03/06 21:57:14 mattias
|
||||||
|
fixed compilation under fpc 1.9.3
|
||||||
|
|
||||||
Revision 1.13 2004/02/23 08:19:04 micha
|
Revision 1.13 2004/02/23 08:19:04 micha
|
||||||
revert intf split
|
revert intf split
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user