|
Nokia N97 SDK Example Applications Guide |
1. About this Example
2. User Interface
3. Design and implementation
In the pop-up list example application, the following styles are provided.
| Single item | Standard (1 row = 1 item) |
| Single item with graphic & head title | A bitmap icon is shown on each item, and a head title is shown at the top of the pop-up list. |
| Double item with large icon | Double pop-up list with a large bitmap icon. |
All of the pop-up list examples can be opened from the Options menu in the initial view. To display the Options menu, press the left soft key in initial view. Pressing the right softkey shows all examples.
At first, an instance of a listbox object is created. Then, when the CAknPopupList object is created (instantiated), the handle of the listbox object is passed to CAknPopupList at the construction phase. Then ExecuteLD is called to show the pop-up list.
When the user selects an item in a pop-up list, the code of ExecuteLD returns to caller. To get the index of the selected item by application code, the CurrentItemIndex is called. Just like a normal dialog, the pop-up list has Active Object in itself.
|
© Nokia 2009 |