<!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.Raise
 (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="../action+en">Up</a>&nbsp;
<a href="picture+en">Previous</a>&nbsp;
<a href="register+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Action.Raise
 (gb.qt)</h1>
<div class="black"><font size="-2"><b>Syntax</b></font></div>
<pre class="syntax"><font color="blue">STATIC</font> <font color="blue">SUB</font> <b>Raise</b> <font color="blue">(</font> <u>Control</u> <font color="blue">AS</font> <font color="#0080FF">Object</font> <font color="blue">)</font></pre>
Activates the action the specified <u>Control</u> is linked to.
<p>
This is done automatically by the component when a control linked to this action is activated: i.e. clicked for a <a href="../button+en">Button</a>, a <a href="../togglebutton+en">ToggleButton</a>, a <a href="../toolbutton+en">ToolButton</a> or a <a href="../menu+en">Menu</a>, shown or hidden for a <a href="../../gb.form/sidepanel+en">SidePanel</a>, a <a href="../../gb.form.mdi/toolbar+en">ToolBar</a> or a <a href="../window+en">Window</a>.
<p>
An activated action is handled in the window the control belongs to by a method named <tt>Action_Activate</tt> returning a boolean value.
<p>
If this method does not exist, or if it returns <a href="../../../lang/true+en">TRUE</a>:
<ul>
<li>If the control window is embedded, then the <tt>Action_Activate</tt> of the parent window is tried.
<li>If the window is top-level, then the action is silently dropped.
</ul>

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

