`
OOP: Opening threads from a class 2004-03-25 -- Robert Peros Newsgroups: comp.lang.clarion > I'm new to oop and have done a debug class that logs entries either > to a queue or to a file. So far so good. > > Now I would really like to do a window that is always on top and shows > me the updated queueentries as they come in. As far as I can see I > need to start this window in it's on thread, but I don't know how and > where do do it in my class definition. In class.clw create MAP-ed procedure: MEMBER MAP Win_P PROCEDURE(STRING S) END Win_P PROCEDURE(STRING S) In code: Win_P PROCEDURE(YouClassInstance) W &YouClass CODE W &= YouClassInstance + 0 OR W &= (YouClassInstance) W.?? In ClassProcedure YouClass.Procedure() SELF.Thread_W = START(Win_P,,ADDRESS(SELF)) R. Printed November 21, 2024, 6:33 am This article has been viewed/printed 35317 times. Google search has resulted in 9 hits on this article since January 25, 2004. |