Subj : Re: Trying to set up a Response table for a dervied thread class but not working... To : borland.public.cpp.borlandcpp From : Bruce Salzman Date : Sat Jun 05 2004 11:58 am > On reading it appears that I can have any class and set it up like this > and from my understanding it should be able to have events. While true that you can derive directly from TEventHandler, OWL's message processing mechanism uses the parent/child window relationship to handle the (convoluted) routing of messages. Also, message queues need a window handle for Windows to send messages to. If you want your thread to process messages like your main window, create an invisible window in your thread. Then you can set up a message processing loop in its Run() method. > ***BUT*** what looks like is happening is that my main window is recieving the messgase but not any other class that i derive for TEventHandler or TWindow. Once I derive a classe from either of those > should it not be able to recieve events directtly to their response > tables? Or thats not how it works, and its the fact that messages only go to the main window of an app and you have to manually write code to > send those messages you want to trap to the various other classes you have in your app. Your class should be able to receive messages. What message are you trying to process? Bruce --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.699 / Virus Database: 456 - Release Date: 6/4/04 .