[...] I imported your unit [...]
What does this mean? I already asked: Did you assign the FormCreate event handler to the OnCreate event of the form? This means: after you pasted the code from the forum into the unit you must go to the object inspector, find the OnCreate event on page "Events" and click on the '...' button - then the code editor should jump to the FormCreate code, and "FormCreate" should appear in the object inspector next to "OnCreate" to indicate that the method is linked to the event - see screenshot. If this has not been made the FormCreate method is not called - you can check this by adding a breakpoint to any line of this procedure (click on the editor gutter of the line to get the breakpoint): program execution must stop at this line.
Try also the attached complete project. It is working - if not, something is very wrong on your system. I checked it in Win 10 with Laz trunk/fpc 3.0.4 and Laz 1.8.4 / fpc 3.04, and in Linux Mint 18.1 with Laz trunk / fpc3.0.4.