uidesigner/com.nokia.carbide.cpp.uidesigner.doc.user/html/concepts/con_com_events.htm
author Deepak Modgil <Deepak.Modgil@Nokia.com>
Fri, 03 Apr 2009 23:33:03 +0100
changeset 0 fb279309251b
permissions -rw-r--r--
DP tools release version Revision: 200912

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>Events</title>
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
</head>
<body bgcolor="#FFFFFF">
<h2>Events</h2>
<p>Most GUI applications are <em>event driven</em>. Control flow in an event driven application is determined by user actions and system generated events. </p>
<h4>User Initiated Events</h4>
<p>Symbian OS handles the top level routing for all  events. User initiated events are sent to the application which has focus at the time they occur. It is up to the application to determine which element should receive the event.</p>
<p>The UI Designer simplifies the work you must do to implement event handling within your application. It sets up shell methods that will be invoked when an object's default event occurs. It also provides an <a href="../reference/views/ref_events_view.htm">Events View</a> tool to help you add the less commonly used events and manage all events. </p>
<p>Generally you must write code to respond to the events that are generated when a user interacts with an interface element in your application. The code generated by the UI Designer will provide a shell for the method(s) which will be invoked for each event you have specified and wish to process, but it is your responsibility to provide the application-specific code within each method to process each event.</p>
<h4>Redraw Events </h4>
<p>You seldom need to do anything to respond to or process redraw events. Redraw events are directed by the OS, 
SDK framework code, and code generated by the Carbide.c++ UI Designer to each screen element when it requires a screen refresh.</p>
<p>You do not need to write code to manage or implement the initial display or refresh your individual visual elements during application runtime when using standard components. You will need to provide code to display any custom components you create, though it may be as simple as a call to the drawing code of its parent class.</p>
<p>When your code brings up a new UI Design screen, or displays or dismisses a Note or Dialog, each element in your UI design will receive appropriate redraw commands, and will implement their associated code to refresh the display.</p>
<p>Tasks</p>
<ul>
  <li><a href="../tasks/prop_events/task_comp_mod_events.htm">Inspecting/Modifying Event Handlers</a></li>
</ul>

<h5>Related references</h5>
<ul>
  <li><a href="../reference/views/ref_events_view.htm">Events View</a></li>
</ul>

<div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>

</body>
</html>