Symbian programming - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Symbian programming

Description:

Symbian programming. Part X. Programming Symbian devices with Symbian ... enum _ EAknMultilineDataLayout ... TInt ShowQueryDialogL(TTime& aDate,TTime& aTime) ... – PowerPoint PPT presentation

Number of Views:61
Avg rating:3.0/5.0
Slides: 15
Provided by: TKT2
Category:

less

Transcript and Presenter's Notes

Title: Symbian programming


1
Symbian programming
  • Part X
  • Programming Symbian devices with Symbian C

Multiline dialogs
2
Content
  • Multiline dialog architecture
  • Resource
  • Components
  • Launching the dialog
  • Using the result values

3
Architecture
  • RESOURCE DIALOG r_xxx_dialog
  • flags
  • buttons R_AVKON_XXX
  • items
  • DLG_LINE

4
RESOURCE
  • RESOURCE DIALOG r_date_time_query
  • flags EGeneralQueryFlags
  • buttons R_AVKON_SOFTKEYS_OK_CANCEL
  • items
  • DLG_LINE
  • type EAknCtMultilineQuery
  • id EMultilineFirstLine

5
RESOURCE
  • control AVKON_DATA_QUERY
  • layout EMultiDataFirstDateEd
  • label "Date"
  • control DATE_EDITOR
  • minDate DATE
  • year 2006

6
RESOURCE
  • maxDate DATE
  • year 2599
  • flags 0
  • ,

7
RESOURCE
  • DLG_LINE
  • type EAknCtMultilineQuery
  • id EMultilineSecondLine
  • control AVKON_DATA_QUERY
  • layout EMultiDataSecondTimeEd
  • label "Time"

8
RESOURCE
  • control TIME_EDITOR
  • minTime TIME
  • second 0
  • minute 0
  • hour 0

9
RESOURCE
  • maxTime TIME
  • second 59
  • minute 59
  • hour 23
  • flags EEikTimeWithoutSeconds
    Field
  • EEikTimeForce24HourFor
    mat

10
COMPONENTS
  • EDWIN
  • enum ? EAknMultilineDataLayout
  • EMultiDataFirstEdwin 1, EMultiDataSecondEdwin
    , EMultiDataFirstSecEd,
  • http//forum.nokia.com/document/Cpp_Developers_Lib
    rary/GUID-96C272CA-2BED-4352-AE7CE692B193EC06/html
    /avkon_8hrh.html

11
Lauching the dialog
  • TInt ShowQueryDialogL(TTime aDate,TTime aTime)
  • CAknMultiLineDataQueryDialog dlg
    CAknMultiLineDataQueryDialogNewL(aDate,aTime)
  • return
  • dlg-gtExecuteLD(R_DATE_TIME_QUERY)

12
Lauching the dialog
  • TTime date
  • date.HomeTime()
  • TTime time
  • time.HomeTime()
  • ShowQueryDialogL(date, time)

13
Lauching the dialog
  • TBuflt40gt dateString
  • _LIT(KFormat,"DMY/01/12/23/3")
    date.FormatL(dateString,KFormat)
  • CAknInformationNote informationNote
  • informationNote new ( ELeave )
    CAknInformationNote
  • informationNote-gtExecuteLD(dateString)

14
Skins
  • void CMyXXProjectAppUiConstructL()
  • // Initialise app UI with standard value.
  • BaseConstructL(EAknEnableSkin)
Write a Comment
User Comments (0)
About PowerShow.com