|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-97712509-84AD-462F-8FFB-E1E6D8278938" xml:lang="en"><title>Enabling |
|
13 touch support for buttons</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>To use a touch-enabled button in your application, implement the following |
|
15 use cases:</p> |
|
16 <ul> |
|
17 <li><p><xref href="GUID-CDBBD44F-C5F6-4D51-B4BA-23DA9BB58D69.dita">Creating generic |
|
18 button</xref></p></li> |
|
19 <li><p><xref href="GUID-96C49728-8C78-4D82-876D-6B1196362D44.dita">Setting button |
|
20 properties not specific to any state</xref></p></li> |
|
21 <li><p><xref href="GUID-07DD47FD-86B7-4AFD-BEDB-DF6EA12DFC6C.dita">Using button |
|
22 states</xref></p></li> |
|
23 <li><p><xref href="GUID-089FE9FA-44C8-48D5-A473-9486BF763283.dita">Setting properties |
|
24 for button states</xref></p></li> |
|
25 <li><p><xref href="GUID-E1A2872E-6E8D-4C02-B3C0-23213FD56106.dita">Handling button |
|
26 events</xref></p></li> |
|
27 </ul> |
|
28 <p><draft-comment time="2008-05-12T14:05" translate="no">We need to provide more clarity |
|
29 on the required order of implementing the use cases and clarify whether there |
|
30 are alternative approaches for achieving the same results.</draft-comment></p> |
|
31 <p>The following use cases are optional, allowing you to set additional properties |
|
32 for your button:</p> |
|
33 <ul> |
|
34 <li><p><xref href="GUID-62DF565C-8121-429F-99D0-B5FBDE634AA9.dita">Using long-tap |
|
35 events</xref></p></li> |
|
36 <li><p><xref href="GUID-79B4468A-2CF6-45E2-BC05-064CA300C12C.dita">Using skin support |
|
37 in buttons</xref></p></li> |
|
38 </ul> |
|
39 <section><title>Implementation file</title><p>The implementation file for |
|
40 the Generic button API is <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/aknbutton_8h-source.html" format="application/java-archive"><codeph>aknbutton.h</codeph></xref>.</p></section> |
|
41 </conbody><related-links> |
|
42 <link href="GUID-F3EE1000-71A6-4D48-A30B-3D2357BF20FB.dita"><linktext>Generic button |
|
43 API description</linktext></link> |
|
44 <link href="GUID-EB212C35-5416-4CA7-8091-61B45D78E220.dita"><linktext>Look and |
|
45 feel guidelines for the generic button in a toolbar</linktext></link> |
|
46 </related-links></concept> |