You are not logged in.
Pages: 1
1) "SynCrtSock.pas, CPort.pas" requires inclusion "Synopse.inc" for processing "{$IFDEF LVCL}"
2) "SynCommons.pas" reqired change "function FileAgeToDateTime" for option "{$IFDEF LVCL}" or need overloded version FileAge in "LVCL\SysUtils.pas"
3) "SynCommons.pas" required declaration TBytes for "{$IFDEF LVCL}" (easier to add to LVCL\SysUtils.pas)
4) "SynCommons.pas" duplicate definitions PUREPASCAL:
{$ifndef PUREPASCAL} { these functions are implemented in asm }
{$ifndef LVCL} { don't define these functions twice }
{$ifndef PUREPASCAL}
procedure FillChar(var Dest; Count: Integer; Value: Byte);
5) "SynCommons.pas" required "function Trim(RawUTF8): RawUTF8" for option "{$IFDEF LVCL}"
Offline
I guess you are using an unsupported version of the compiler for LVCL.
LVCL works without any problem with Delphi 7, in the current unstable 1.18 branch.
LVCL does NOT work with any other version (may be Delphi 2007, but not tested).
Offline
I tried to translate for D2007, XE3.
In the "D2007" examples work. And in "XE3" black background in forms (still need to fix).
LVCL my changes:
LVCL_CHANGES_D2007,XE3_[2014.02.11_1919].zip
Offline
To reduce the size of the examples (*.dpr):
{$IF CompilerVersion >= 22.00}
{.$IFNDEF DEBUG}
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{.$ENDIF}
{$ENDIF}
Offline
LVCL\Demo\Project3.dpr
D2007: 62'464 bytes
XE3: 81'408 bytes
Offline
I've committed most of your enhancements.
Tested with Delphi 7 only by now.
Thanks a lot for the feedback!
Offline
thanks!!!
fixes for Abort/ReturnAddress
procedure Abort;
{$IFDEF MSWINDOWS}{$IFNDEF UNICODE}
function ReturnAddress: Pointer; // "ReturnAddress" built into the new language
asm
mov eax, [ebp+8]
end;
{$ENDIF}{$ENDIF}
begin
raise EAbort.Create('Operation Aborted') {$IFDEF FPC} {at todo: ?<i do not remember> }{$ELSE}at ReturnAddress{$ENDIF};
end;
- I will wait for fixes for unicode
Last edited by pult (2014-02-13 00:02:16)
Offline
Pages: 1