10 <!DOCTYPE concept |
10 <!DOCTYPE concept |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
12 <concept id="GUID-66EFFCF5-581A-4EE7-B784-8087A1081B6D" xml:lang="en"><title>Title |
12 <concept id="GUID-66EFFCF5-581A-4EE7-B784-8087A1081B6D" xml:lang="en"><title>Title |
13 pane</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 pane</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
14 <p>The <uicontrol>Title pane</uicontrol> displays a context-dependent application |
14 <p>The <uicontrol>Title pane</uicontrol> displays a context-dependent application |
15 title or state name. Title pane in Home screen view can work with touch down |
15 title or state name.</p> |
16 and release but by default, there is no functionality.</p> |
16 <fig id="GUID-62EB0EDB-3EC7-4321-A1DD-099EF80318B7"> |
17 <fig id="GUID-DB644221-B698-4BAF-8BDC-8A852E4DCEE1"> |
|
18 <title>Title pane</title> |
17 <title>Title pane</title> |
19 <image href="GUID-E04B4397-2926-4F4D-A7FE-F79F3BF37BF8_d0e67575_href.png" placement="inline"/> |
18 <image href="GUID-C6086C67-963B-455F-8BA6-58DC568084F0_d0e67627_href.png" scale="50" placement="inline"/> |
20 </fig> |
19 </fig> |
21 <ul> |
20 <ul> |
22 <li><p>Typically, the title text is the descriptive name of the current main |
21 <li><p>Typically, the title text is the descriptive name of the current main |
23 pane view.</p></li> |
22 pane view.</p></li> |
24 <li><p>In an application title pane, the title text is typically |
23 <li><p>In an application idle state, the title text is typically the application |
25 the application name.</p></li> |
24 name.</p></li> |
26 <li><p>In the home screen, the <uicontrol>Title pane</uicontrol> may contain |
25 <li><p>In the idle state, the <uicontrol>Title pane</uicontrol> may contain |
27 an operator logo (left-aligned in the area available) instead of the operator |
26 an operator logo (left-aligned in the area available) instead |
28 name as text.</p></li> |
27 of the operator name as text.</p></li> |
29 </ul> |
28 </ul> |
30 <section id="GUID-74624CAD-8179-4439-82FC-A88E1C940AAA"><title>Using |
29 <section><title>Using the title pane |
31 the title pane in applications</title><p>The API to use for the title pane |
30 in C++ applications</title><p>The API to use for the title pane component |
32 component is the Title pane API. For observing title pane touch events, use |
31 is the <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/Title_Pane_APIIndexPage.html" format="application/java-archive">Title |
33 the Title Pane Touch Observer API.</p><p>To use a title pane in your application, |
32 pane API</xref>. For observing title pane touch events, use the <xref href="GUID-B876D548-FD40-4369-B328-7427002B4851.dita">Title |
34 create an instance of the <xref href="GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF.dita"><apiname>CAknTitlePane</apiname></xref> class.</p><p>Use |
33 Pane Touch Observer API</xref>.</p><p>To use a title pane in your application, |
35 the <xref href="GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF.dita#GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF/GUID-F89E2F33-6AB7-3A16-8620-A3FA25347752"><apiname>CAknTitlePane::SetTextL()</apiname></xref> method to set the title pane |
34 create an instance of the class <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html" format="application/java-archive"><codeph>CAknTitlePane</codeph></xref>.</p><p>Use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html#7f4e2823b01d379c520327735b1c04e3" format="application/java-archive"><codeph>SetTextL()</codeph></xref> in the class <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html" format="application/java-archive"><codeph>CAknTitlePane</codeph></xref> to set the title pane text and display it. To set the text to scroll |
36 text and display it. To set the text to scroll if it does not fit the title |
35 if it does not fit the title pane text area, set the flag <codeph>aScroll</codeph> to <codeph>ETrue</codeph>. |
37 pane text area, set the flag <codeph>aScroll</codeph> to <codeph>ETrue</codeph>. |
36 To set the text to the default (name of the application), use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html#f08a9e4674d01e3cf765c46371527588" format="application/java-archive"><codeph>SetTextToDefault()</codeph></xref>.</p><p>Use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html#62828189dbd5025010de7178436dd6db" format="application/java-archive"><codeph>SetPicture()</codeph></xref> to display a picture in the title pane. |
38 To set the text to the default (name of the application), use the <xref href="GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF.dita#GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF/GUID-493A6764-24F8-3574-A967-A78005579705"><apiname>CAknTitlePane::SetTextToDefault()</apiname></xref> method.</p><p>Use |
37 To set the icon from a file, use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html#56018aed72ff6500af8a5f970a86df1c" format="application/java-archive"><codeph>SetPictureFromFileL()</codeph></xref>. Alternatively, to set a small |
39 the <xref href="GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF.dita#GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF/GUID-10E096F4-9BDA-34A5-9370-CF50219E33E5"><apiname>CAknTitlePane::SetPicture()</apiname></xref> method to display a picture |
38 icon to be displyed together with text, use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html#cc2c91182dafcd7eac0f9cb817453992" format="application/java-archive"><codeph>SetSmallPicture()</codeph></xref>.</p><p>To set the title pane contents |
40 in the title pane. To set the icon from a file, use the <xref href="GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF.dita#GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF/GUID-385EFCB3-092B-346F-8033-9F011F6E89C3"><apiname>CAknTitlePane::SetPictureFromFileL()</apiname></xref> method. |
39 from a resource file, use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html#34a47bf0f5bc9f3c9a1126088ffc78eb" format="application/java-archive"><codeph>SetFromResourceL()</codeph></xref>. </p></section> |
41 Alternatively, to set a small icon to be displayed together with text, use |
|
42 the <xref href="GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF.dita#GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF/GUID-45AA1B1E-BD7B-36E8-97C2-F8457E891935"><apiname>CAknTitlePane::SetSmallPicture()</apiname></xref> method.</p><p>To set |
|
43 the title pane contents from a resource file, use the <xref href="GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF.dita#GUID-4368DC7C-366A-34D6-ADA2-E2931381BEEF/GUID-FC2CD2B6-7DE1-3DBB-9450-12B02E1916D3"><apiname>CAknTitlePane::SetFromResourceL()</apiname></xref> method. </p></section> |
|
44 </conbody></concept> |
40 </conbody></concept> |