<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css">
<title>
Gambas Documentation - Message
 (gb.qt)</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help+en"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../gb.qt+en">Up</a>&nbsp;
<a href="menu/_new+en">Previous</a>&nbsp;
<a href="message/delete+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Message
 (gb.qt)</h1>
<img src="../../../image/control/+message+en" alt="Message">
<p>
This class is used for displaying message boxes.
<p>
<div class="black"><font size="-2"><b>Symbols</b></font></div>
<div class="border">
This class is static.<br>
This class can be used as a <b><a class="none" href="message/_call+en">function</a></b>.<br>
<hr><table class="none" cellspacing="0" cellpadding="0">
<tr>
<td align=left><b>Static&nbsp;methods</b></td><td width="32">&nbsp;</td>
</tr>
<tr valign=top>
<td>
<b><a class="none" href="message/delete+en">Delete</a></b>&nbsp;&nbsp; <b><a class="none" href="message/error+en">Error</a></b>&nbsp;&nbsp; <b><a class="none" href="message/info+en">Info</a></b>&nbsp;&nbsp; <b><a class="none" href="message/question+en">Question</a></b>&nbsp;&nbsp; <b><a class="none" href="message/warning+en">Warning</a></b>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
</div><p>

All Message functions can have up to three buttons:
<ul>
<li>The first button is always the default button.
<li>The last button is always the cancel button.
<p>
</ul>

When invoked with only one argument, then there is only one &quot;OK&quot; button.
<p>
Message boxes are modal, i.e. the program is paused until one button is clicked.
<p>
When the message box is closed, the index of the clicked button is returned.
<p>
<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="example">PRINT Message(&quot;Program v0.3\nVersion of 2006-03-28&quot;)
PRINT Message.Info(&quot;Program v0.3\nVersion of 2006-03-28&quot;, &quot;Fine&quot;)
PRINT Message.Warning(&quot;Your changes will be lost&quot;, &quot;Save&quot;, &quot;Ignore&quot;, &quot;Cancel&quot;)</pre>

</div>
</body>
</html>

