jvcllaz: Fix compilation for 64-bit

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6251 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-03-17 00:19:46 +00:00
parent 4b403fca15
commit ac5d9f9de4
5 changed files with 18 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<CONFIG> <CONFIG>
<ProjectOptions> <ProjectOptions>
<Version Value="11"/> <Version Value="10"/>
<PathDelim Value="\"/> <PathDelim Value="\"/>
<General> <General>
<SessionStorage Value="InProjectDir"/> <SessionStorage Value="InProjectDir"/>
@ -22,8 +22,9 @@
<Version Value="2"/> <Version Value="2"/>
</PublishOptions> </PublishOptions>
<RunParams> <RunParams>
<FormatVersion Value="2"/> <local>
<Modes Count="0"/> <FormatVersion Value="1"/>
</local>
</RunParams> </RunParams>
<RequiredPackages Count="3"> <RequiredPackages Count="3">
<Item1> <Item1>

View File

@ -1,7 +1,7 @@
object TMTimeLineMainForm: TTMTimeLineMainForm object TMTimeLineMainForm: TTMTimeLineMainForm
Left = 261 Left = 371
Height = 580 Height = 580
Top = 138 Top = 154
Width = 733 Width = 733
Caption = 'Team Manager Timeline demo' Caption = 'Team Manager Timeline demo'
ClientHeight = 580 ClientHeight = 580
@ -17,7 +17,7 @@ object TMTimeLineMainForm: TTMTimeLineMainForm
OnMouseWheelUp = FormMouseWheelUp OnMouseWheelUp = FormMouseWheelUp
Position = poScreenCenter Position = poScreenCenter
ShowHint = True ShowHint = True
LCLVersion = '1.9.0.0' LCLVersion = '1.8.0.6'
Scaled = False Scaled = False
object Splitter1: TSplitter object Splitter1: TSplitter
Cursor = crVSplit Cursor = crVSplit

View File

@ -45,7 +45,7 @@ unit JvOutlookBar;
interface interface
uses uses
LCLType, LCLIntf, LMessages, Types, LCLType, LCLIntf, LMessages, Types, LCLVersion,
SysUtils, Classes, ActnList, SysUtils, Classes, ActnList,
Buttons, Controls, Graphics, ImgList, Forms, StdCtrls, ExtCtrls, Themes, Buttons, Controls, Graphics, ImgList, Forms, StdCtrls, ExtCtrls, Themes,
{$IFDEF HAS_UNIT_SYSTEM_UITYPES} {$IFDEF HAS_UNIT_SYSTEM_UITYPES}
@ -327,7 +327,9 @@ type
procedure SetThemed(const Value: Boolean); procedure SetThemed(const Value: Boolean);
procedure SetWordWrap(const Value: Boolean); procedure SetWordWrap(const Value: Boolean);
protected protected
{$IF LCL_FullVersion >= 1090000}
function DoEraseBackground(ACanvas: TCanvas; Param: LPARAM): Boolean; override; function DoEraseBackground(ACanvas: TCanvas; Param: LPARAM): Boolean; override;
{$ENDIF}
procedure FontChanged; override; procedure FontChanged; override;
function GetButtonHeight(PageIndex, ButtonIndex: Integer): Integer; function GetButtonHeight(PageIndex, ButtonIndex: Integer): Integer;
function GetButtonTopHeight(PageIndex, ButtonIndex: Integer): Integer; function GetButtonTopHeight(PageIndex, ButtonIndex: Integer): Integer;
@ -2606,11 +2608,13 @@ begin
Inc(Result, 4); Inc(Result, 4);
end; end;
{$IF LCL_FullVersion >= 1090000}
function TJvCustomOutlookBar.DoEraseBackground(ACanvas: TCanvas; Param: LPARAM): Boolean; function TJvCustomOutlookBar.DoEraseBackground(ACanvas: TCanvas; Param: LPARAM): Boolean;
begin begin
// don't redraw background: we always fill it anyway // don't redraw background: we always fill it anyway
Result := True; Result := True;
end; end;
{$ENDIF}
procedure TJvCustomOutlookBar.RedrawRect(R: TRect; Erase: Boolean = False); procedure TJvCustomOutlookBar.RedrawRect(R: TRect; Erase: Boolean = False);
begin begin

View File

@ -930,7 +930,7 @@ function TJvCustomTMTimeline.GetImageIndex(ADate: TDate): Integer;
begin begin
Result := FDateImages.IndexOf(IntToStr(Trunc(ADate))); Result := FDateImages.IndexOf(IntToStr(Trunc(ADate)));
if Result > -1 then if Result > -1 then
Result := Integer(FDateImages.Objects[Result]); Result := PtrUInt(FDateImages.Objects[Result]);
end; end;
procedure TJvCustomTMTimeline.SetImageIndex(ADate: TDate; procedure TJvCustomTMTimeline.SetImageIndex(ADate: TDate;
@ -941,7 +941,7 @@ begin
I := FDateImages.IndexOf(IntToStr(Trunc(ADate))); I := FDateImages.IndexOf(IntToStr(Trunc(ADate)));
if I < 0 then if I < 0 then
I := FDateImages.Add(IntToStr(Trunc(ADate))); I := FDateImages.Add(IntToStr(Trunc(ADate)));
FDateImages.Objects[I] := TObject(Value); FDateImages.Objects[I] := TObject(PtrUInt(Value));
Invalidate; Invalidate;
end; end;
@ -1218,7 +1218,7 @@ begin
raise EStreamError.CreateRes(@RsInvalidImage); raise EStreamError.CreateRes(@RsInvalidImage);
FDateImages.Text := ReadStr(Stream); FDateImages.Text := ReadStr(Stream);
for I := 0 to FDateImages.Count - 1 do for I := 0 to FDateImages.Count - 1 do
FDateImages.Objects[I] := TObject(ReadInt(Stream)); FDateImages.Objects[I] := TObject(PtrUInt(ReadInt(Stream)));
FObjects.Text := ReadStr(Stream); FObjects.Text := ReadStr(Stream);
for I := 0 to FObjects.Count - 1 do for I := 0 to FObjects.Count - 1 do
begin begin
@ -1235,7 +1235,7 @@ begin
WriteStr(Stream, cMagic); WriteStr(Stream, cMagic);
WriteStr(Stream, FDateImages.Text); WriteStr(Stream, FDateImages.Text);
for I := 0 to FDateImages.Count - 1 do for I := 0 to FDateImages.Count - 1 do
WriteInt(Stream, Integer(FDateImages.Objects[I])); WriteInt(Stream, PtrUInt(FDateImages.Objects[I]));
WriteStr(Stream, FObjects.Text); WriteStr(Stream, FObjects.Text);
for I := 0 to FObjects.Count - 1 do for I := 0 to FObjects.Count - 1 do
SaveObject(Stream, FObjects.Objects[I]); SaveObject(Stream, FObjects.Objects[I]);

View File

@ -244,7 +244,9 @@ type
property HideSelection; property HideSelection;
property Hint; property Hint;
property HotTrack; property HotTrack;
{$IFDEF LCL_FullVersion >= 1090000}
property HotTrackColor; property HotTrackColor;
{$ENDIF}
property Images; property Images;
property Indent; property Indent;
property Items; property Items;