Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link 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.
Today is November 23, 2024, 3:38 am This article has been viewed 35321 times. Google search has resulted in 9 hits on this article since January 25, 2004.
|
|