Week 28 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 1897 and Bug 1522.
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --><!-- This component and the accompanying materials are made available under the terms of the License "Eclipse Public License v1.0" which accompanies this distribution, and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --><!-- Initial Contributors: Nokia Corporation - initial contribution.Contributors: --><!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"><reference id="GUID-79B02562-B6E6-5DF9-BF98-F015C73A448C" xml:lang="en"><title>Clock: Analog and Digital Clocks example</title><shortdesc> </shortdesc><prolog><metadata><keywords/></metadata></prolog><refbody><section id="GUID-4DE456B7-D724-5591-93BE-ECDDC2CDFF89"><title>Purpose</title> <p>This example shows how to create and display a digital and analogclock. For more information about the API, see <xref href="GUID-A36C2DE6-21D8-5558-B223-1E81CEB16891.dita">Clock Overview</xref>. </p> </section><section id="GUID-1C52A2F4-43C6-5C58-8FC1-0B90BAEAFCC7"><title>Download</title> <p>Click on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-c26b23db-9a81-4fff-859b-ef08686838eb.zip" scope="external"> ClockExample.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-c26b23db-9a81-4fff-859b-ef08686838eb.html" scope="peer">browse</xref> to view the example code. </p> </section><section id="GUID-549577CE-8943-463C-B704-A696A5899D34"><title>ClassSummary</title><ul><li><p><xref href="GUID-30479BE3-296E-3B4D-914D-B080ABD733E4.dita"><apiname> CWsScreenDevice </apiname></xref></p></li><li><p><xref href="GUID-DE966D8B-6E00-39B6-B136-6CF29EA384D3.dita"><apiname> CFbsFont</apiname></xref></p></li><li><p><xref href="GUID-F84C7F40-6DEB-39D1-B172-CB0CC3918E27.dita"><apiname> TRgb</apiname></xref></p></li><li><p><xref href="GUID-0D6ECBF5-EC03-3BF7-9C74-C0EC9BAF0CE6.dita"><apiname> TAnalogDisplayHand</apiname></xref></p></li><li><p><xref href="GUID-8197A30D-29FD-3325-810D-EBCC2F970588.dita"><apiname> STimeDeviceShadow</apiname></xref></p></li><li><p><xref href="GUID-800B3667-F45F-391F-A8A9-F876FB4ABC34.dita"><apiname> RAnimDll</apiname></xref></p></li><li><p><xref href="GUID-17CFBF88-1C4A-3CAD-9299-C1698FA20401.dita"><apiname> RDigitalClock</apiname></xref></p></li><li><p><xref href="GUID-6D7509CD-7AD9-3C5D-AFDB-6F23D17224C7.dita"><apiname> RAnalogClock </apiname></xref></p></li></ul></section><section id="GUID-92648AEA-CFFA-559E-908E-5BA84FF0C984"><title>Buildingand configuring</title> <p>To build the example: </p> <ul><li id="GUID-6CB77721-3A36-541D-B994-73D89D487678"><p>You can buildthe example from your IDE or the command line. </p> <p>If you usean IDE, import the <filepath>bld.inf</filepath> file of the exampleinto your IDE, and use the build command of the IDE. </p> <p>If youuse the command line, open a command prompt, and set the current directoryto the source code directory of the example. You can then build theexample with the SBSv1 build tools with the following commands: </p> <p><userinput>bldmake bldfiles</userinput> </p> <p><userinput>abldbuild</userinput> </p> </li><li id="GUID-7995C8BC-28D3-59A8-94E1-2957C1C3729A"><p>For the emulator,the example builds an executable called <filepath>clockexample.exe</filepath> in the <filepath>epoc32\release\winscw\<udeb or urel>\</filepath> folder. </p> </li></ul> </section></refbody><related-links><link href="GUID-A36C2DE6-21D8-5558-B223-1E81CEB16891.dita"><linktext>ClockOverview</linktext></link></related-links></reference>