This is a Beta Read Only version of this page. Please review and send recommendations to firstname.lastname@example.org. We will enable the editing as soon as we are happy with the overall Wiki site.
type TTLMainThredEvent = class( TTLBasicTimingFilter )
class TTLMainThredEvent : public TTLBasicTimingFilter
Visual C++ (MFC):
class CTTLMainThredEvent : public CTTLBasicTimingFilter
public ref class TTLMainThredEvent : Mitov.TimingLab.BasicTimingFilter
Allows other threads to generate main thread notifications.
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.
TTLMainThredEvent 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.
- Blocking - Specifies whether the the Fire event will wait until the notification is processed before returning.
- procedure Fire() - Generates a main thread event.
- OutputPin - The output pin of the component.
- Enabled - Enables or disables the component.