Hvordan kan jeg ændre ikonet på denne MessageDlg?? Ændre det til mit applications ikon? Og ændre teksten(i titlebaren) til noget andet end error? ved godt at man kan skifte mtError ud med mtWarning osv. men vil gerne have en messagedlg med mit app ikon
I dette særtema om aspekter af AI ser vi på skiftet fra sprogmodeller til AI-agenter, og hvordan virksomheder kan navigere i spændet mellem teknologisk hastighed og behovet for menneskelig kontrol.
function GetIconResNameFromStr(const Str: string): PChar; {Returns a pointer to given string resource name in the format expected by the MessageBoxIndirect API call: this is a PChar pointer to a wide char string under Windows NT and a PChar pointer to an ansi char string under Windows 9x} begin if Win32Platform = VER_PLATFORM_WIN32_NT then Result := PChar(PWChar(WideString(Str))) else Result := PChar(Str); end;
var MsgParams: TMsgBoxParams; begin with MsgParams do begin // with cbSize := SizeOf(MsgParams); hInstance := SysInit.HInstance; hwndOwner := Handle; lpszText := 'This is a MessageBoxIndirect Message Box'; lpszCaption := 'This is the Caption , ,'; dwStyle := MB_OKCANCEL or MB_USERICON or MB_APPLMODAL;
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.