Class TLMainThreadEvent.TTLMainThreadEvent

From Mitov Wiki Doc
Revision as of 00:30, 26 June 2013 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

BIGTLMainThreadEvent.gif TLMainThreadEvent.gif NETTLMainThreadEvent.gif

Package: TimingLabBasicPkg

Unit: TLMainThreadEvent

Inherits: TTLBasicEventTimingFilter

Contents

Syntax

Delphi:

type TTLMainThreadEvent = class( TTLBasicEventTimingFilter )

C++ Builder:

class TTLMainThreadEvent : public TTLBasicEventTimingFilter

Visual C++ (MFC):

class CTTLMainThreadEvent : public CTTLBasicEventTimingFilter

C# (.NET):

public ref class MainThreadEvent : Mitov.TimingLab.BasicEventTimingFilter

Summary

Allows other threads to generate main thread notifications.

Description

Use this component to allow other threads to generate main thread notifications.

Accessing user interface items such as Labels, Check Boxes, Buttons, etc. from a thread different than the main thread in windows is not safe and can lead to application crash.

TTLMainThreadEvent allows any thread to call an event in the context of the main thread where the code can safely access any user interface item.


To assign the event to be called use the OnNotify event to a callback function.

To generate the event call the Fire method.

If you need to wait until the event is processed set the Blocking property to True.


Diagram:

TLMainThreadEvent Preview.png

From TTLBasicEventTimingFilter

Properties

Published

Methods

Public

Events

From TTLBasicTimingFilter

Pins

From TTLBasicClockedFilter

Pins

From TSLBasicEnableFilter

Properties

Published

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox