https://mitov.com/wiki/index.php?title=Class_TLMainThredEvent.TTLMainThredEvent&feed=atom&action=historyClass TLMainThredEvent.TTLMainThredEvent - Revision history2024-03-28T13:05:19ZRevision history for this page on the wikiMediaWiki 1.17.0https://mitov.com/wiki/index.php?title=Class_TLMainThredEvent.TTLMainThredEvent&diff=2149&oldid=prevDavid Alm: Automated Syncronization with Documentation2011-11-22T00:16:35Z<p>Automated Syncronization with Documentation</p>
<p><b>New page</b></p><div><b><span style="color:red"><br />
This is a Beta Read Only version of this page. <br />
Please review and send recommendations to [mailto:mitov@mitov.com mitov@mitov.com]. <br />
We will enable the editing as soon as we are happy with the overall Wiki site.<br />
</span></b><br />
<br />
[[Image:BIGTLMainThredEvent.gif]] [[Image:TLMainThredEvent.gif]] [[Image:NETTLMainThredEvent.gif]]<br />
<br />
'''Package:''' [[Package TimingLabBasicPkg|TimingLabBasicPkg]]<br />
<br />
'''Unit:''' [[Unit TLMainThredEvent|TLMainThredEvent]]<br />
<br />
'''Inherits:''' [[Class TLBasicTimingFilter.TTLBasicTimingFilter|TTLBasicTimingFilter]]<br />
<br />
== Syntax ==<br />
=== Delphi: ===<br />
<code><br />
'''type''' TTLMainThredEvent = '''class'''( [[Class TLBasicTimingFilter.TTLBasicTimingFilter|TTLBasicTimingFilter]] )<br />
</code><br />
=== C++ Builder: ===<br />
<code><br />
'''class''' TTLMainThredEvent : '''public''' [[Class TLBasicTimingFilter.TTLBasicTimingFilter|TTLBasicTimingFilter]]<br />
</code><br />
=== Visual C++ (MFC): ===<br />
<code><br />
'''class''' CTTLMainThredEvent : '''public''' [[Class TLBasicTimingFilter.TTLBasicTimingFilter|CTTLBasicTimingFilter]]<br />
</code><br />
=== C# (.NET): ===<br />
<code><br />
'''public ref class''' TTLMainThredEvent : [[Class TLBasicTimingFilter.TTLBasicTimingFilter|Mitov.TimingLab.BasicTimingFilter]]<br />
</code><br />
== Summary ==<br />
Allows other threads to generate main thread notifications. <br />
<br />
== Description ==<br />
Use this component to allow other threads to generate main<br />
thread notifications.<br />
<br />
Accessing user interface items such as Labels, Check Boxes,<br />
Buttons, etc. from a thread different than the main thread in<br />
windows is not safe and can lead to application crash.<br />
<br />
[[Class TLMainThredEvent.TTLMainThredEvent|TTLMainThredEvent]] allows any thread to call an event in the<br />
context of the main thread where the code can safely access<br />
any user interface item.<br />
<br />
<br />
<br />
To assign the event to be called use the [[Event TLMainThredEvent.TTLMainThredEvent.OnNotify|OnNotify]] event to a<br />
callback function.<br />
<br />
To generate the event call the [[Method procedure TLMainThredEvent.TTLMainThredEvent.Fire()|Fire]] method.<br />
<br />
If you need to wait until the event is processed set the<br />
[[Property TLMainThredEvent.TTLMainThredEvent.Blocking|Blocking]] property to True.<br />
<br />
== Properties ==<br />
<br />
=== Published ===<br />
*[[Property TLMainThredEvent.TTLMainThredEvent.Blocking|Blocking]] - Specifies whether the the [[Method procedure TLMainThredEvent.TTLMainThredEvent.Fire()|Fire]] event will wait until the notification is processed before returning. <br />
<br />
== Methods ==<br />
<br />
=== Public ===<br />
*[[Method procedure TLMainThredEvent.TTLMainThredEvent.Fire()|procedure Fire()]] - Generates a main thread event. <br />
<br />
== Events ==<br />
*[[Event TLMainThredEvent.TTLMainThredEvent.OnNotify|OnNotify]] - Occurs when the [[Method procedure TLMainThredEvent.TTLMainThredEvent.Fire()|Fire]] method is called. <br />
<br />
== From [[Class TLBasicTimingFilter.TTLBasicTimingFilter|TTLBasicTimingFilter]] ==<br />
<br />
== Pins ==<br />
*[[Pin TLBasicTimingFilter.TTLBasicTimingFilter.OutputPin|OutputPin]] - The output pin of the component. <br />
<br />
== From [[Class TLBasicTimingFilter.TTLBasicClockedFilter|TTLBasicClockedFilter]] ==<br />
<br />
== Properties ==<br />
<br />
=== Published ===<br />
*[[Property TLBasicTimingFilter.TTLBasicClockedFilter.Enabled|Enabled]] - Enables or disables the component. <br />
<br />
== Pins ==<br />
*[[Pin TLBasicTimingFilter.TTLBasicClockedFilter.InputPin|InputPin]] - The Input Pin of the component. <br />
*[[Pin TLBasicTimingFilter.TTLBasicClockedFilter.EnablePin|EnablePin]] - The enable pin of the component. <br />
<br />
[[Category:Components]][[Category:Classes]]</div>David Alm