On 01/10/2010 16:28, Bo Berglund wrote: > On Fri, 01 Oct 2010 16:10:52 +0100, Paulo Costa <[email protected]> wrote: > >>> En/na Bo Berglund ha escrit: >>> >>>> So far most of what has been shown builds on Synaser or similar, which >>>> are blocking systems.... >>> >>> Yes, so you put it in a TThread and, when the data is ready, use >>> synchronize to signal the main thread. >> >> >> That is how it is done on the 5dpo component. >> I has been working very nicely for us. >> > When you say "component" do you mean a component in the Delphi way > where you drop a component on to a form etc? > > I don't like that way because I want to have better control and I also > want to use the functions in form-less application (console) so I > usually try to use classes that implement stuff by instantiating > objects when needed for this purpose. > Is that possible with 5dpo? >
Most if not all 'components' can be used that way - Create the instance of its object (make sure you Free it upon shutdown), assign appropriate procedures to On[] events and set properties by hand/in code. (GLScene can be made running that way, i don't see why others would not) > > Bo Berglund > L. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
