⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainpage.dox

📁 symbian ui的 例子 初学者可以 好好看看,这个是培训的资料,应该比较宝贵
💻 DOX
📖 第 1 页 / 共 2 页
字号:
EAknGridIncrementLineAndStops : No looping at the edge of items.<br>
EAknGridIncrementLineAndLoop : Loop at the edge of items. </td></tr>

<tr>
<td valign=top	width=20%>secondaryscroll</td>
<td width=80%>Define the behaviour of secondary scrolling. (Refer *3)<br>
EAknGridFollowsItemsAndStops : Not loop<br>
EAknGridFollowsItemsAndLoops : Loop in a same line<br>
EAknGridFollowsGrid : (Not used)<br>
EAknGridStops : (Not used)<br>
EAknGridIncrementLineAndStops : No looping at the edge of items.<br>
EAknGridIncrementLineAndLoops : Loops at the edge of items. </td></tr>

<tr>
<td valign=top	width=20%>itemsinprimaryorient</td>
<td width=80%>Set the number of items in the primary orientation.</td></tr>

<tr>
<td valign=top	width=20%>itemsinsecondaryorient</td>
<td width=80%>Set the number of items in the secondary orientation.</td></tr>

<tr>
<td valign=top	width=20%>height</td>
<td width=80%>Set the height of an item [pixel]</td></tr>

<tr>
<td valign=top	width=20%>width</td>
<td width=80%>Set the width of an item [pixel]</td></tr>

<tr>
<td valign=top	width=20%>gapwidth</td>
<td width=80%>Set the horizontal gap between items [pixel]</td></tr>

<tr>
<td valign=top	width=20%>gapheight</td>
<td width=80%>Set the vertical gap between items [pixel]</td></tr>
</table></td></tr>
</table>

 *
 * 2 : If style in GRID structure is not set, the following default values 
 *
<div align=left><table style="width:65%;" cellspacing="4" width="65%" bgcolor="#DDDDDD" class="hcp27">

<tr>
<td>
<p class=CodeInTable>layoutflags = EAknGridVerticalOrientation | EAknGridLeftToRight 
 | EaknGridTopToBottom;<br>
primaryscroll = EaknGridFollowsItemsAndLoops;<br>
secondaryscroll = EaknGridFollowsItemsAndLoops;<br>
itemsinprimaryorient = 1;<br>
itemsinsecondaryorient = 1;<br>
height = 50;<br>
width = 50;<br>
gapwidth = 0;<br>
gapheight = 0; </td></tr>
</table></div>
 *
 * 3: Primary and secondary directions are defined by grid orientation. 
 * 
 *
<table cellspacing=0		width=70%>
<tr>
<td width=100%>

<table cellspacing=0		width=100%		border=1>
<tr>
<td width=33%>Grid Orientation</td>
<td width=33%>Primary direction</td>
<td width=34%>Secondary direction</td></tr>

<tr>
<td width=33%>Vertical</td>
<td width=33%>Vertical</td>
<td width=34%>Horizontal</td></tr>

<tr>
<td width=33%>Horizontal</td>
<td width=33%>Horizontal</td>
<td width=34%>Vertical</td></tr>
</table>
</td></tr>
</table>
 *
 *
 * \subsection Sub6 3.6 Constructing and initialising a grid control
 *
 * In this section, the method of construction and initialisation are described.
 *
 * There are two ways to construct the CAknGrid object: 
 *
 * - Construct without resource data 
 * - Construct with resource data 
 *
 * The ConstructL function needs to be called in case resource data is not used. However, the application programmer needs to call setting functions step by step. 
 *
 * The ConstructFromResourceL function needs to be called in case resource data is used.
 *
 * Usually, the CAknGridM class object is instantiated automatically during the construction phase of the CAknGrid object. If an application programmer provides their own grid model class, the application programmer must instantiate their own grid model class object and give it to the CAknGrid object using the SetModel function before calling the ConstructL/ConstructFromResourceL function.
 *
 * After setting model, it is necessary to set icons and items in the grid.
 *
 * \subsection Sub7 3.7 Runtime operation
 *
 * This section describes how to code to operate the grid control.
 *
 * \subsection Sub8 3.7.1 Coding to operate the cursor and grid mark
 *
 * SetCurrentDataIndex is the function to move the grid cursor.
 *
<div align=left><table style="width:65%;" cellspacing="4" width="65%" bgcolor="#DDDDDD" class="hcp27">
<tr>
<td	width=100%>
<p class=CodeInTable>iGrid-&gt;SetCurrentDataIndex(  <i>an 
 index</i>  );<br>
iGrid-&gt;DrawNow();&nbsp; &nbsp; // This method is called to refresh the 
 grid.</td></tr>
</table></div>
 *
 * SelectItemL(set mark), DeSelectItemL (de-select mark) and ToggleItemL(set as reversed) are provided to operate the item mark. The following code is an example of marking the item:
 *
<div align=left><table style="width:65%;" cellspacing="4" width="65%" bgcolor="#DDDDDD" class="hcp27">
<tr>
<td width=100%>
<p class=CodeInTable>iGrid-&gt;View()-&gt;SelectItemL( <i> an index </i> );<br>
iGrid-&gt;DrawNow();&nbsp; &nbsp; // This method is called to refresh the 
 grid.</td></tr>
</table></div>
 *
 * The CurrentDataIndex function gives the  index of the selected item.
 *
<div align=left><table style="width:65%;" cellspacing="4" width="65%" bgcolor="#DDDDDD" class="hcp27">
<tr>
<td width=100%>
<p class=CodeInTable>TInt currentIndex = iGrid-&gt;CurrentDataIndex();</td></tr>
</table></div>
 *
 * The ItemIsSelected function is used to know whether items are marked.
 *
<div align=left><table style="width:65%;" cellspacing="4" width="65%" bgcolor="#DDDDDD" class="hcp27">
<tr>
<td width=100%>
<p class=CodeInTable>TBool isSelected = iGrid-&gt;View()-&gt;ItemIsSelected( 
 <i> an index </i> );</td></tr>
</table></div>
 *
 * \subsection Sub9 3.7.2 Coding to insert and remove items
 *
 * The Model()->SetItemTextArray() function and array are used to insert or remove items. Items are inserted or removed in array, then the HandleItemAdditionL function needs to be called. The following is an example of inserting items:
 *
<div align=left><table style="width:65%;" cellspacing="4" width="65%" bgcolor="#DDDDDD" class="hcp27">
<tr>
<td width=100%>
<p class=CodeInTable>iItemArray-&gt;AppendL(); // iItemArray 
 was set to the grid before using<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
 // iGrid-&gt;Model()-&gt;SetItemTextArray(iItemArray);<br>
iGrid-&gt;HandleItemAdditionL();&nbsp; // HandleItemAdditionL() must be 
 called<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
 // after adding an item.<br>
iGrid-&gt;DrawNow();</td></tr>
</table></div>
 *
 * \subsection Sub10 3.8 Event handling
 *
 * To handle an event for the grid, an event handling architecture for the listbox can be used.
 * To use this: 
 *
 * - The container of the grid should be derived from MEikListBoxObserver. 
 * - Call iGrid->SetListBoxObserver(this) to set an observer to the grid. 
 * - HandleListBoxEventL() must be overridden. 
 * 
 *
 * <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_grid_app.html">CAknExGridApp</a>
<li><a class="el" href="class_c_akn_ex_grid_app_ui.html">CAknExGridAppUi</a>
<li><a class="el" href="class_c_akn_ex_grid_container.html">CAknExGridContainer</a>
<li><a class="el" href="class_c_akn_ex_grid_container_as_selection.html">CAknExGridContainerAsSelection</a>
<ul>
<li><a class="el" href="class_c_akn_ex_grid_container_as_g_m_s.html">CAknExGridContainerAsGMS</a>
<li><a class="el" href="class_c_akn_ex_grid_container_as_menu.html">CAknExGridContainerAsMenu</a>
</ul>
<li><a class="el" href="class_c_akn_ex_grid_dialog_change_size.html">CAknExGridDialogChangeSize</a>
<li><a class="el" href="class_c_akn_ex_grid_dialog_filling_order.html">CAknExGridDialogFillingOrder</a>
<li><a class="el" href="class_c_akn_ex_grid_dialog_number_of_items.html">CAknExGridDialogNumberOfItems</a>
<li><a class="el" href="class_c_akn_ex_grid_document.html">CAknExGridDocument</a>
<li><a class="el" href="class_c_akn_ex_grid_view.html">CAknExGridView</a>
<li><a class="el" href="class_c_akn_ex_grid_view_as_g_m_s.html">CAknExGridViewAsGMS</a>
<li><a class="el" href="class_c_akn_ex_grid_view_as_markable_selection.html">CAknExGridViewAsMarkableSelection</a>
<li><a class="el" href="class_c_akn_ex_grid_view_as_menu.html">CAknExGridViewAsMenu</a>
<li><a class="el" href="class_c_akn_ex_grid_view_as_selection.html">CAknExGridViewAsSelection</a>
</ul>
 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -