I have installed lazarus v1.8.0 on Windows 10, 64 Bit.
I successfully compiled the tutorial demo (Change Button Text "Click" to "Click again") so I think the compiler is working.
Now I want to proceed with the examples from the Wiki.
(3.4 Graphics -> Lazarus TCanvas -> Drawing a text limited on the width)
The examples do not compile.
// First calculate the text size then draw it
TextBox := Rect(0, currentPos.Y, Width, High(Integer));
DrawText(ACanvas.Handle, PChar(Text), Length(Text),
TextBox, DT_WORDBREAK or DT_INTERNAL or DT_CALCRECT);
DrawText(ACanvas.Handle, PChar(Text), Length(Text),
TextBox, DT_WORDBREAK or DT_INTERNAL);
I get some error messages
Projekt kompilieren, Ziel: tutbmp01.exe: Exit code 1, Fehler: 13
tutbmp01u.pas(36,1) Error: Identifier not found "TextBox"
tutbmp01u.pas(36,20) Error: Identifier not found "currentPos"
tutbmp01u.pas(37,1) Error: Identifier not found "DrawText"
tutbmp01u.pas(37,10) Error: Identifier not found "ACanvas"
tutbmp01u.pas(38,3) Error: Identifier not found "TextBox"
tutbmp01u.pas(38,12) Error: Identifier not found "DT_WORDBREAK"
tutbmp01u.pas(38,28) Error: Identifier not found "DT_INTERNAL"
tutbmp01u.pas(38,43) Error: Identifier not found "DT_CALCRECT"
tutbmp01u.pas(40,1) Error: Identifier not found "DrawText"
tutbmp01u.pas(40,10) Error: Identifier not found "ACanvas"
tutbmp01u.pas(41,3) Error: Identifier not found "TextBox"
tutbmp01u.pas(41,12) Error: Identifier not found "DT_WORDBREAK"
tutbmp01u.pas(41,28) Error: Identifier not found "DT_INTERNAL"
What do I need to compile the examples?
Is there another tutorial that helps?