IMcViewNotifyEnabled Property
|
|
Determines if a particular event notify client will receive
events.
Namespace:
MediaCy.IQL.Display.Viewer
Assembly:
MediaCy.IQL.Display.Viewer (in MediaCy.IQL.Display.Viewer.dll) Version: 10.0.6912.0
SyntaxProperty NotifyEnabled (
NotifyClient As Object
) As Boolean
Get
Set
Parameters
- NotifyClient
- Type: SystemObject
Nothing or an object that has previously registered as an
event notify client for one of the two event interfaces. The custom
_IMcBasicViewEvents is search for this client first, then the late binding
_IMcViewEvents interface. If this client is not registered, the property is
exposed as False, and nothing happens on assignment. On assignment, if
Nothing, then all notify clients are set to the assigned state.
Property Value
Type:
Boolean
RemarksThis property allows particular event notification clients to be
disabled or re-enabled without having to unregister and then re-register the
event client. You would most generally use this to hide and show individual
drawing overlays (see Example). All overlays may be hidden via the
Display.DisplayWhat property.
Note |
---|
There is also a corresponding Display property mirroring this one; either
may be used with identical results. |
Examples
If ThisApplication.ActiveWindow.View.SetNotifyPriority( ThisApplication.ActiveImage.AnnotationOverlay, 0) = 0 Then
ThisApplication.ActiveImage.AnnotationOverlay.Visible = True
If ThisApplication.ActiveWindow.View.SetNotifyPriority( ThisApplication.ActiveImage.AnnotationOverlay, 0) = 0 Then
MsgBox "Something is wrong. The ThisApplication.ActiveImage.AnnotationOverlay should now be a notify client."
Exit Sub
End If
End If
ThisApplication.ActiveWindow.View.NotifyEnabled( ThisApplication.ActiveImage.AnnotationOverlay) = False
See Also