| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
os.windows - Windows supportThis module is only available on Windows-native Gauche, and
provides Windows-specific procedures.
You can check gauche.os.windows feature with
cond-expand macro (See section srfi-0 - Feature conditional)
to conditionalize windows-specific code.
(cond-expand [gauche.os.windows (use os.windows) ... Windows-specific code ...] [else ... Unix code ...]) |
Currently there aren’t enough procedures provided here, but eventually we want to support simple scripting on Windows.
Unless otherwise noted,
when Windows API returns an error value, a <system-error> condition
is thrown.
| 11.17.1 Windows dialogs | ||
| 11.17.2 Windows console API |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Currenly we only have MessageBox API.
Calls Windows MessageBox API. The window argument should
be a handle for a window, or #f; at the moment we don’t
provide any API that retrieves window handles, so you should always
pass #f here. The message argument takes a string
for the content of the message box. Optional caption
argument takes a string to be used in the window title.
The flags argument is an integer; it should be logior
of values from one or more of the following groups. See the
Windows reference manual for the details.
MB_ABORTRETRYIGNORE,
MB_CANCELTRYCONTINUE,
MB_HELP,
MB_OK (default),
MB_OKCANCEL,
MB_RETRYCANCEL,
MB_YESNO,
MB_YESNOCANCEL
Default is no icon. Possible values:
MB_ICONEXCLAMATION,
MB_ICONWARNING,
MB_ICONINFORMATION,
MB_ICONASTERISK,
MB_ICONQUESTION,
MB_ICONSTOP,
MB_ICONERROR,
MB_ICONHAND
MB_DEFBUTTON1 (default),
MB_DEFBUTTON2,
MB_DEFBUTTON3,
MB_DEFBUTTON4
MB_APPLMODAL (default),
MB_SYSTEMMODAL,
MB_TASKMODAL
MB_DEFAULT_DESKTOP_ONLY,
MB_RIGHT,
MB_RTLREADING,
MB_SETFOREGROUND,
MB_TOPMOST,
MB_SERVICE_NOTIFICATION
Return value is one of the following integer constants,
indicating which button is pressed:
IDABORT,
IDCANCEL,
IDCONTINUE,
IDIGNORE,
IDNO,
IDOK,
IDRETRY,
IDTRYAGAIN, or
IDYES
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Most of these procedures corresponds to Windows Console API one-to-one. See the Windows reference for the detail description of what each API does.
[Windows]
Calls AllocConsole and FreeConsole, respectively.
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
[Windows]
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Shiro Kawai on May 28, 2012 using texi2html 1.82.