((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/win32-msgbox" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg") (toc)) (section 2 "win32-msgbox" (p "win32-msgbox is a Scheme interface to the Win32 " (link "http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx" "MessageBox") " function.") (highlight sh "[procedure] (msgbox MSG #!key (title \"\")\n                              (buttons 'ok)\n                              (default-button 1)\n                              (icon 'none)\n                              (foreground #t)\n                              (topmost #f))\n") (p "Valid symbols for the " (i "buttons") " option are:") (ul (li "ok") (li "ok/cancel") (li "abort/retry/ignore") (li "yes/no/cancel") (li "yes/no") (li "retry/cancel") (li "cancel/try/continue")) (p "Valid symbols for the " (i "icon") " option are:") (ul (li "none") (li "stop") (li "question") (li "exclamation") (li "information")) (p (i "msgbox") " returns the symbol associated to each button (e.g. the " (i "retry") " button returns the '" (i "retry") " symbol).") (section 3 "Requirements" (p "A Windows platform of course.")) (section 3 "Usage" (highlight scheme "(use win32-msgbox)") (p "The " (i "-Wl,--subsystem,windows") " linker switch ensures that the application is built as a Windows GUI application, and not as a console application.") (highlight sh "csc -Wl,--subsystem,windows test.scm") (section 4 "Example 1" (highlight scheme "(use win32-msgbox)\n\n(msgbox \"Your public IP address is:\\n\\n7.19.211.65\"\n        title: \"Info\"\n        icon: 'information)") (p (image-link "https://bitbucket.org/mklm/win32-msgbox/wiki/msgbox1.png"))) (section 4 "Example 2" (highlight scheme "(use win32-msgbox)\n\n(define user-input (msgbox \"Resource not available\\nDo you want to try again?\"\n                            title: \"Warning\"\n                            buttons: 'retry/cancel\n                            icon: 'exclamation))\n\n(or (eq? user-input 'retry)\n    (exit 1))\n...") (p (image-link "https://bitbucket.org/mklm/win32-msgbox/wiki/msgbox2.png")))) (section 3 "About this software" (p "The source code is hosted at " (link "https://bitbucket.org/mklm/win32-msgbox/" "Bitbucket") ". Feel free to send pull requests or open an issue there. Alternatively, send an e-mail to the " (link "mailto://chicken-users@nongnu.org" "chicken-users") " mailing list for information or requests.") (section 4 "Author" (p "Michele La Monaca")) (section 4 "Version history" (dl (dt "1.1") (dd "Fixed build issue in mingw") (dt "1.0") (dd "Initial release"))) (section 4 "License" (pre "Copyright (c) 2013\nMichele La Monaca (win32-msgbox@lamonaca.net)\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1) Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\n2) Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in the\ndocumentation and/or other materials provided with the distribution.\n\n3) Neither the name of the author nor the names of its contributors\nmay be used to endorse or promote products derived from this software\nwithout specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\nFOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\nINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\nSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\nOF THE POSSIBILITY OF SUCH DAMAGE.")))))