Not got Laz/fpc code near me, but my guess is that when you have a TTrackBar on the form, the unit that it's housed in will be added to the uses list, and if you delete it (provided no other referenced classes are included) it may get removed.
Find which unit TTrackBar is declared in and add it to the relevant uses clause by hand.. Does that help? DSP -----Original Message----- From: Brad Campbell [mailto:[email protected]] Sent: 17 December 2009 15:37 To: General mailing list Subject: [Lazarus] Dynamic creation of TTrackBar G'day all, I'm currently using "Lazarus 0.9.29 r22679 FPC 2.2.5 i386-linux-gtk 2 (beta)". On a form, I'm creating 30-40 instances of a TTrackBar dynamically. If, at design time I have a TTrackBar on the form, this all goes swimingly. If, however there is no TTrackBar on the form, when I run the application I get "Class "TTrackBar" not found.". I'm pretty sure I've created components dynamically before and not bumped up against this. I *know* I'm doing something dumb, but it's late and I just can't figure out what it is. Can someone whack me with the clue bat please? Regards, Brad -- Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
