Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi messagebox (https://www.delphipraxis.net/86309-messagebox.html)

passsy 12. Feb 2007 14:21


messagebox
 
Delphi-Quellcode:
messagebox('mein text', MB_YESNO, MB_ICONQUESTION);
HWND und string inkompatibel
integer und pansichar inkompatibel


HÄ? :gruebel:

das muss ich nich verstehen oder?

turboPASCAL 12. Feb 2007 14:25

Re: messagebox
 
Versuch mal das:

Delphi-Quellcode:
if messagebox(Handle, PChar('mein text'), PChar('Hallo'), MB_YESNO or MB_ICONQUESTION) = IDYES then Windows.beep(880,25);
:wink:

Christian Seehase 12. Feb 2007 14:25

Re: messagebox
 
Moin Pascal,

vielleicht wird es klarer, wenn Du Dir mal die Doku dazu durchliest ;-)

MSDN-Library durchsuchenMessageBox

chaosben 12. Feb 2007 14:26

Re: messagebox
 
@passsy:
Musst du nicht ... solltest du aber.

Zitat:

Zitat von Die Delphi Hilfe ©Borland
MessageBox Function

The MessageBox function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons.

Syntax
int MessageBox(HWND hWnd,
LPCTSTR lpText,
LPCTSTR lpCaption,
UINT uType
);

Du meintest sicher
Delphi-Quellcode:
Application.MessageBox
:)

//edit:
Und weils so schneller geht ignorier ich den roten Kasten einfach mal. Sorry :)

xZise 12. Feb 2007 14:38

Re: messagebox
 
Zitat:

Zitat von chaosben
Du meintest sicher
Delphi-Quellcode:
Application.MessageBox
:)

Ist nicht zwingend ;)

passsy 12. Feb 2007 14:41

Re: messagebox
 
danke TURBOpascal hat mir sehr geholfen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:39 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz