multiline/word wrap text output lazarus / 13-General ---------------------------------------------------------------------- gymgoal · 2008-05-09 21:02 Is there a platform-independent way to draw text that automatically wraps words (like TLabel with WordWrap=true)? In Delphi I used Windows API for this. Now I'm programming an application in Lazarus, currently in Windows, but I'll be compiling it under Linux and Mac also, when it's finished. I looked at the TLabel source code and it calls DrawText, and DrawText is defined in winapih.inc, so it looks platform-dependent to me. Can I use DrawText? Will the result be the same in Linux and on Mac? ---------------------------------------------------------------------- Leledumbo · 2008-05-10 05:20 AFAIK, yes. How do you look at the source? If you do it via ctrl+click on TLabel somewhere in your source, it will bring you to the widgetset implementation (which is Win32 in your case). TLabel is implemented platform independently, as long as you call the provided methods. The result should look similar under all supported widgetset (well... doesn't have to if the widgetset has a bug).