Please, specify what your OS type and version are as well as your Lazarus/FPC version and widgetset.
In the meantime, test with this minimal project (attached) and tell us whether it works or fails and , if the latter, how it fails.
I have tested it in Linux i386 and Windows XP and it worked as it should.