Enumeration · SwConst
swUserNotificationPosition_e-Enumeration
Wo eine Benutzerbenachrichtigung eines Add-ins im übergeordneten Fenster erscheint, etwa oben mittig oder unten rechts.
Syntax
Enum swUserNotificationPosition_e
swUserNotificationPosition_Default = 0
swUserNotificationPosition_TopCenter = 1
swUserNotificationPosition_TopRight = 2
swUserNotificationPosition_BottomCenter = 3
swUserNotificationPosition_BottomRight = 4
End EnumWerte
| Konstante | Wert | Bedeutung |
|---|---|---|
swUserNotificationPosition_Default | 0 | Die Stelle, die das System in diesem Fenster für Benachrichtigungen vorsieht. Standard. |
swUserNotificationPosition_TopCenter | 1 | Oben in der Mitte des Fensters. |
swUserNotificationPosition_TopRight | 2 | Oben rechts im Fenster. |
swUserNotificationPosition_BottomCenter | 3 | Unten in der Mitte des Fensters. |
swUserNotificationPosition_BottomRight | 4 | Unten rechts im Fenster. |
Beispiel
' swApp ist die SOLIDWORKS-Anwendung.
' swHandler ist ein Objekt deines Add-ins, das UserNotificationHandler umsetzt.
Dim swDef As SldWorks.UserNotificationDefinition, nErgebnis As Long
Set swDef = swApp.DefineUserNotification("MeinAddIn+HINWEIS1")
swDef.Title = "Hinweis"
swDef.Message = "Die Prüfung ist abgeschlossen."
swDef.Position = swUserNotificationPosition_BottomRight
nErgebnis = swApp.ShowUserNotification(swDef, swHandler)Bemerkungen
Du setzt den Wert mit UserNotificationDefinition.Position. Ohne Angabe gilt swUserNotificationPosition_Default. Die Position bezieht sich auf das übergeordnete Fenster: das SOLIDWORKS-Fenster bei SldWorks.ShowUserNotification, das Dokumentfenster bei ModelDocExtension.ShowUserNotification.
Meldungsleisten (MessageBarDefinition) haben keine solche Einstellung.
Verwendet von
Siehe auch
Englisches Original: swUserNotificationPosition_e in der SOLIDWORKS API-Hilfe ↗
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.