Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Symbole (z.B. aus Messagebox) einbinden (https://www.delphipraxis.net/20510-symbole-z-b-aus-messagebox-einbinden.html)

Tubos 19. Apr 2004 12:49


Symbole (z.B. aus Messagebox) einbinden
 
Hallo;

wie kann ich z.B. das rote "Error"-Zeichen einer Messagebox einbinden?
In welcher DLL ist das gespeichert bzw. wie kann ich es in ein Programm laden?

EDIT:
Das Problem hat sich von selbst gelöst, sry.

mirage228 19. Apr 2004 13:07

Re: Symbole (z.B. aus Messagebox) einbinden
 
In einer MessageBox geht das so
Delphi-Quellcode:
MessageBox(0, 'Text', 'Caption', MB_OK + MB_ICONERROR);
Und ansonsten:

Du kannst ein Handle darauf bekommen:

Delphi-Quellcode:
// Fehler
LoadIcon(0, IDI_ERROR);
// Information
LoadIcon(0, IDI_INFORMATION);
// Frage
LoadIcon(0, IDI_QUESTION);
// Warnung
LoadIcon(0, IDI_WARNING);
Du kannst diese so in einem Image darstellen:
Delphi-Quellcode:
Image1.Picture.Icon.Handle := LoadIcon(0, IDI_WARNING);
mfG
mirage228


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:36 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