Zum Inhalt

MessageBox (Opus Funktion)

Beschreibung

Diese Funktion erzeugt ein Popup Fenster, welches dem User eine Mitteilung anzeigt.

Argumente

Name Typ Beschreibung
[string](../../standard-datentypen/string.md) Meldung, die angezeigt werden soll.
[string](../../standard-datentypen/string.md) Titel der Nachricht
[integer](../../standard-datentypen/integer.md) | Buttons | Flag | MessageBox("Text1","Text2",0x000..) | | --- | --- | --- | | MB_OK | 0x00000000 | ![image2017-3-20 17:19:9.png](../../../../../attachments/3370109/3358968.png) | | MB_OKCANCEL | 0x00000001 | ![image2017-3-20 17:18:18.png](../../../../../attachments/3370109/3359088.png) | | MB_ABORTRETRYIGNORE | 0x00000002 | ![image2017-3-20 17:20:5.png](../../../../../attachments/3370109/3358978.png) | | MB_YESNOCANCEL | 0x00000003 | ![image2017-3-20 17:20:52.png](../../../../../attachments/3370109/3358988.png) | | MB_YESNO | 0x00000004 | ![image2017-3-20 17:22:33.png](../../../../../attachments/3370109/3358998.png) | | MB_RETRYCANCEL | 0x00000005 | ![image2017-3-20 17:23:3.png](../../../../../attachments/3370109/3359008.png) | | MB_CANCELTRYCONTINUE | 0x00000006 | ![image2017-3-20 17:46:19.png](../../../../../attachments/3370109/3359038.png) | | Icons | Summe mit Flag Buttons | z.B. 0x00000023 | | MB_ICONQUESTION | 0x00000020 | ![image2017-3-20 17:47:53.png](../../../../../attachments/3370109/3358888.png) | | MB_ICONEXCLAMATION | 0x00000030 | ![image2017-3-20 17:50:8.png](../../../../../attachments/3370109/3358898.png) | | MB_USERICON | 0x00000080 | ?? | | MB_ICONERROR | 0x00000010 | ![image2017-3-20 17:29:45.png](../../../../../attachments/3370109/3359018.png) | | MB_ICONINFORMATION | 0x00000040 | ![image2017-3-20 17:50:55.png](../../../../../attachments/3370109/3358908.png) | | Deault Buttons | Summe mit Flag Buttons | z.B. 0x0000103 | | MB_DEFBUTTON1 | 0x00000000 | 1. Button ist der Default Button | | MB_DEFBUTTON2 | 0x00000100 | 2. Button ist der Default Button | | MB_DEFBUTTON3 | 0x00000200 | 3. Button ist der Default Button ![image2017-3-20 17:54:56.png](../../../../../attachments/3370109/3358918.png) 0x00000203 | | MB_DEFBUTTON4 | 0x00000300 | 4. Button ist der Default Button | | Weitere Eigenschaften | | | | MB_APPLMODAL | 0x00000000 | | | MB_SYSTEMMODAL | 0x00001000 | | | MB_TASKMODAL | 0x00002000 | | | MB_HELP | 0x00004000 | 0x00004103 ![image2017-3-20 17:38:54.png](../../../../../attachments/3370109/3359028.png) | | MB_NOFOCUS | 0x00008000 | | | MB_SETFOREGROUND | 0x00010000 | | | MB_DEFAULT_DESKTOP_ONLY | 0x00020000 | | | MB_TOPMOST | 0x00040000 | | | MB_RIGHT | 0x00080000 | |

Rückgabewert integer

Button integer
image2017-3-20 18:0:30.png 1
image2017-3-20 18:1:8.png 2
image2017-3-20 18:1:37.png 3
image2017-3-20 18:2:30.png 4
image2017-3-20 18:2:59.png 5
image2017-3-20 18:3:39.png 6
image2017-3-20 18:3:57.png 7
image2017-3-20 18:4:43.png 9
image2017-3-20 18:7:8.png 10
image2017-3-20 18:7:36.png 11

Beispiel

s_Mess = MessageBox("Bitte PlanungsPeriode auswählen!", "Abbruch", 0x00000000);

Siehe auch