📄 mainpage.dox
字号:
<td style="width:29.235%;" valign="top" width="29.235%" class="hcp18">defined interface for DoubleTimeStyle</td></tr>
</table>
</div>
*
* \subsection Sub332 3.3.2 Event handling for the listbox
*
* When the listbox receives a key event, it calls HandleListBoxEventL in MeikListBoxObserver directly.
*
* \subsection Sub333 3.3.3 Resource definition of listbox classes
*
* To define resources for the listbox, the resource structure LISTBOX is used.
*
<div align=center><table style="width:70%;" cellspacing="0" width="70%" border="1" class="hcp15">
<tr>
<td style="width:22%;" align="center" valign="top" width="22%" class="hcp16">
<p class=TableText><i class="hcp19"><span class="hcp20">Fi</span>eld name</i></td>
<td style="width:78%;" align="center" valign="top" width="78%" class="hcp16">
<p class=TableText><i><span class="hcp20">Description</span></i></td></tr>
<tr>
<td style="width:22%;" valign="top" width="22%" class="hcp18">
<p class=TableText>BYTE version</td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>version</td></tr>
<tr>
<td style="width:22%;" valign="top" width="22%" class="hcp18">
<p class=TableText>WORD flags</td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText><span class=CodeInText>EAknListBoxXxxxx</span> can be
used (See <span class=CodeInText>Avkon.hrh</span>)</td></tr>
<tr>
<td style="width:22%;" valign="top" width="22%" class="hcp18">
<p class=TableText>WORD height</td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>amount of rows</td></tr>
<tr>
<td style="width:22%;" valign="top" width="22%" class="hcp18">
<p class=TableText>WORD width</td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>characters for area of item displaying</td></tr>
<tr>
<td style="width:22%;" valign="top" width="22%" class="hcp18">
<p class=TableText>LLINK array_id</td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>resource id to array of item</td></tr>
</table>
</div>
*
* The following is the example resource definition of the listbox:
*
<div align=left><table style="width:60%;" cellspacing="4" width="60%" bgcolor="#DDDDDD" class="hcp21">
<tr>
<td style="width: 100%;"
width=100%><i><span class="hcp20">Example</span></i></td></tr>
<tr>
<td style="width:100%;" bgcolor="#EEEEEE" width="100%" class="hcp22">
<p class=CodeInTable>RESOURCE LISTBOX r_akntalist_single_1<br>
{<br>
array_id = r_akntalist_item_single1;<br>
flags = EAknListBoxSelectionList;<br>
}<br>
RESOURCE ARRAY r_akntalist_item_single1<br>
{<br>
items =<br>
{<br>
LBUF<br>
{<br>
txt = qtn_akntalist_item_s1;<br>
},<br>
...<br>
}, </td></tr>
</table>
</div>
*
* \subsection Sub334 3.3.4 Using resource data
*
* The following is an example of using resource data.
*
* The example of SingleItemListBox.
*
<div align=left><table style="width:60%;" cellspacing="4" width="60%" bgcolor="#DDDDDD" class="hcp21">
<tr>
<td style="width: 100%;"
width=100%><i><span class="hcp20">Example</span></i></td></tr>
<tr>
<td style="width:100%;" bgcolor="#EEEEEE" width="100%" class="hcp22">
<p class=CodeInTable>resourceId = R_AKNTALIST_SINGLE_1;<br>
CAknSingleStyleListBox* listBox = new(ELeave)CAknSingleStyleListBox();<br>
listBox->SetContainerWindowL( parent);<br>
TResourceReader reader;<br>
CEikonEnv::Static()->CreateResourceReaderLC(reader, aResourceId);<br>
listBox->SetObserver(observer);<br>
listBox->ConstructFromResourceL( reader );<br>
CleanupStack::PopAndDestroy(); // resource stuffs. </td></tr>
</table>
</div>
*
* This is the common code to create control from resource data. To create another type of listbox, simply change CAknSingleStyleListBox.
*
* \subsection Sub335 3.3.5 Implementation of the observer handler for the listbox
*
* The listbox observer is necessary for all listboxes. A notification of specific actions for the listbox are given to the observer. It is necessary to instantiate an object that is derived from MEikListBoxObserver to control the listbox. After instantiation, SetObserver is called to set the observer to the listbox. Then HandleListBoxEventL of the observer is called when the following events are issued:
*
<div align=left><table
style="width: 70%;
float: alignleft;
x-border-left: 1px table-solid;
x-border-top: 1px table-solid;
x-border-right: 1px table-solid;
x-border-bottom: 1px table-solid;
border-collapse: separate;
border-spacing: 0px;
x-border-left: 1px table-solid;
x-border-top: 1px table-solid;
x-border-right: 1px table-solid;
x-border-bottom: 1px table-solid;
border-collapse: separate;
border-spacing: 0px;"
cellspacing=0
width=70%
border=1>
<tr>
<td style="width:22%;" align="center" valign="top" width="22%" class="hcp16">
<p class=TableText
style="text-align: left;"
align=left><i class="hcp19">Event</i></td>
<td style="width:78%;" align="center" valign="top" width="78%" class="hcp16">
<p class=TableText
style="text-align: left;"
align=left><i class="hcp19">Description</i></td></tr>
<tr>
<td style="width: 22%;"
width=22%><span class=CodeInText>EEventEnterKeyPressed</span></td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>The Enter key was pressed.</td></tr>
<tr>
<td style="width: 22%;"
width=22%><span class=CodeInText>EEventItemClicked</span></td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>An item in the list was clicked.</td></tr>
<tr>
<td style="width: 22%;"
width=22%><span class=CodeInText>EEventItemDoubleClicked</span></td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>An item in the list was doubled-clicked.</td></tr>
<tr>
<td style="width: 22%;"
width=22%><span class=CodeInText>EEventItemActioned</span></td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>An item was added or deleted.</td></tr>
<tr>
<td style="width: 22%;"
width=22%><span class=CodeInText>EEventEditingStarted</span></td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>Editing was started.</td></tr>
<tr>
<td style="width: 22%;"
width=22%><span class=CodeInText>EEventEditingStopped</span></td>
<td style="width:78%;" valign="top" width="78%" class="hcp18">
<p class=TableText>Editing was stopped.</td></tr>
</table>
</div>
*
* \subsection Sub336 3.3.6 Changing the contents of the listbox dynamically
*
* The status of the listbox is changeable dynamically with APIs as shown below. To change the contents of the list:
*
<div align=left><table style="width:70%;" cellspacing="4" width="70%" bgcolor="#DDDDDD" class="hcp21">
<tr>
<td style="width:100%;" bgcolor="#EEEEEE" width="100%" class="hcp22">
<p class=CodeInTable>MListBoxModel* CEikListBox::Model()
const<br>
- This function is used for getting the listbox model.<br>
<br>
const MDesCArray* CListBoxNumbersModel::MatchableTextArray() const<br>
- This function must be also used.<br>
Also, functions in the MDesCArray class are available.<br>
These functions are used as shown below:<br>
CEikListBox* listbox;<br>
...<br>
listbox->Model()->MatchableTextArray()->... </td></tr>
</table>
</div>
*
* <HR>
*
* \section Hierarchy_sec 4. Class Hierarchy
This inheritance list is sorted roughly, but not completely, alphabetically:<ul>
<li><a class="el" href="class_c_akn_ex_list_app.html">CAknExListApp</a>
<li><a class="el" href="class_c_akn_ex_list_app_ui.html">CAknExListAppUi</a>
<li><a class="el" href="class_c_akn_ex_list_base_container.html">CAknExListBaseContainer</a>
<ul>
<li><a class="el" href="class_c_akn_ex_list_column_container.html">CAknExListColumnContainer</a>
<li><a class="el" href="class_c_akn_ex_list_flag_test_container.html">CAknExListFlagTestContainer</a>
<li><a class="el" href="class_c_akn_ex_list_form_container.html">CAknExListFormContainer</a>
<li><a class="el" href="class_c_akn_ex_list_mark_container.html">CAknExListMarkContainer</a>
<li><a class="el" href="class_c_akn_ex_list_set_page_container.html">CAknExListSetPageContainer</a>
<li><a class="el" href="class_c_akn_ex_list_setting_container.html">CAknExListSettingContainer</a>
</ul>
<li><a class="el" href="class_c_akn_ex_list_base_view.html">CAknExListBaseView</a>
<ul>
<li><a class="el" href="class_c_akn_ex_list_column_view.html">CAknExListColumnView</a>
<li><a class="el" href="class_c_akn_ex_list_flag_test_view.html">CAknExListFlagTestView</a>
<li><a class="el" href="class_c_akn_ex_list_form_view.html">CAknExListFormView</a>
<li><a class="el" href="class_c_akn_ex_list_mark_view.html">CAknExListMarkView</a>
<li><a class="el" href="class_c_akn_ex_list_set_page_view.html">CAknExListSetPageView</a>
<li><a class="el" href="class_c_akn_ex_list_setting_view.html">CAknExListSettingView</a>
</ul>
<li><a class="el" href="class_c_akn_ex_list_document.html">CAknExListDocument</a>
<li><a class="el" href="class_c_akn_ex_list_set_page.html">CAknExListSetPage</a>
</ul>
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -