<!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 - Action
 (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="_windowmenus/_next+en">Previous</a>&nbsp;
<a href="action/enabled+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Action
 (gb.qt)</h1>
This class is used for managing actions.
<p>
An action is a string key that link together controls that must have the same goal.
<p>
For example, a &quot;Save&quot; <a href="menu+en">Menu</a> entry and a <a href="button+en">Button</a> in a <a href="../gb.form.mdi/toolbar+en">ToolBar</a> with a &quot;Save&quot; icon.
Instead of having to make control groups and catching events, you can use actions to:
<ul>
<li>Centralize your event dispatching in one event handler. See <a href="action/raise+en">Raise</a> for more information.
<li>Automatically synchronize toggle buttons and menus associated with an action.
<li>Globally enable or disable buttons and menus.
<p>
</ul>

<div class="black"><font size="-2"><b>Symbols</b></font></div>
<div class="border">
This class is not creatable.<br>
This class acts like a <b><a class="none" href="action/_get+en">read-only</a></b> array.<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="action/get+en">Get</a></b>&nbsp;&nbsp; <b><a class="none" href="action/lock+en">Lock</a></b>&nbsp;&nbsp; <b><a class="none" href="action/raise+en">Raise</a></b>&nbsp;&nbsp; <b><a class="none" href="action/register+en">Register</a></b>&nbsp;&nbsp; <b><a class="none" href="action/unlock+en">UnLock</a></b>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
<hr><table class="none" cellspacing="0" cellpadding="0">
<tr>
<td align=left><b>Properties</b></td><td width="32">&nbsp;</td>
</tr>
<tr valign=top>
<td>
<a class="none" href="action/enabled+en">Enabled</a>&nbsp;&nbsp; <a class="none" href="action/picture+en">Picture</a>&nbsp;&nbsp; <a class="none" href="action/text+en">Text</a>&nbsp;&nbsp; <a class="none" href="action/tooltip+en">ToolTip</a>&nbsp;&nbsp; <a class="none" href="action/value+en">Value</a>&nbsp;&nbsp; <a class="none" href="action/visible+en">Visible</a>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
</div><p>

The following controls can be linked to an action:
<ul>
<li><a href="button+en">Button</a>
<li><a href="checkbox+en">CheckBox</a>
<li><a href="menu+en">Menu</a>
<li><a href="../gb.form/sidepanel+en">SidePanel</a>
<li><a href="togglebutton+en">ToggleButton</a>
<li><a href="../gb.form.mdi/toolbar+en">ToolBar</a>
<li><a href="toolbutton+en">ToolButton</a>
<li><a href="window+en">Window</a>
</ul>

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

