From: "Marvin Gülker" Date: 2009-11-28T23:44:23+09:00 Subject: Re: Windows Pop Up jackster the jackle wrote: > Thanks ALOT Marvin...that worked perfectly and saved me a ton of time. > > I really appreciate it! > > jack I'm happy I could help you ;-) I just found a more complete list of the message box constants in my old Windows-GUI project. Here it is: #Layout consts MB_OK = 0 MB_OKCANCEL = 1 MB_ABORTRETRYIGNORE = 2 MB_YESNOCANCEL = 3 MB_YESNO = 4 MB_RETRYCANCEL = 5 MB_CANCELTRYCONTINUE = 0x00000006 MB_ICONHAND = 16 MB_ICONQUESTION = 32 MB_ICONEXCLAMINATION = 48 MB_ICONASTERISK = 64 MB_ICONWARNING = MB_ICONEXCLAMINATION MB_ICONINFORMATION = MB_ICONASTERISK MB_ICONSTOP = MB_ICONHAND MB_ICONERROR = MB_ICONSTOP MB_DEFBUTTON1 = 0 MB_DEFBUTTON2 = 256 MB_DEFBUTTON3 = 512 MB_APPLMODAL = 0 MB_SYSTEMMODAL = 4096 MB_TASKMODAL = 8192 #Return consts IDOK = 1 IDCANCEL = 2 IDABORT = 3 IDRETRY = 4 IDIGNORE = 5 IDYES = 6 IDNO = 7 > MessageBox.call(0, "Text", "Titel", MB_OK | MB_ICONINFORMATION) If you're interested in it: That first zero means that there's no parent window for the message box. By using some other Windows API functions you could pass in a window handle here and make a modal dialog, but I think that's too much work for simple displaying something. And, yeah, the "Titel" should have read "Title". ;-) Marvin -- Posted via http://www.ruby-forum.com/.