diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-270FC83E-1D47-4CF9-A560-FB5DDA53111E.dita --- a/Symbian3/PDK/Source/GUID-270FC83E-1D47-4CF9-A560-FB5DDA53111E.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-270FC83E-1D47-4CF9-A560-FB5DDA53111E.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,72 +1,72 @@ - - - - - -Showing -or hiding the toolbar extension -

The toolbar extension is automatically shown when the extension button -is pressed.

-

The extension button is in a latched down state when the extension is open. -If the extension button is pressed again, the extension closes and the extension -button returns to normal state. This also happens if the user clicks somewhere -outside the extension area.

-

By default, the extension is left open when the user selects an item from -the extension. You can change this by defining suitable flags to the button.

-

The example below shown the definition of a toolbar extension with the -button closing the extension when selected.

-RESOURCE AVKON_TOOLBAR_EXTENSION r_myapp_toolbar_extension - { - items = - { - TBAR_CTRL - { - type = EAknCtButton; - id = ECmdExtFirst; - control = AVKON_BUTTON - { - flags = KAknButtonRequestExitOnButtonUpEvent; - states = - { - AVKON_BUTTON_STATE - { - extension = r_myapp_toolbar_ext_first; - } - }; - }; - }, -… - } - }; - } - -

You can also show or hide the toolbar extension in your application using -the methods in the class CAknToolbarExtension.

-

The example below shows how to hide or show the toolbar extension.

-void CMyAppView::ChangeToolbarExtensionVisibility( TBool aHide ) - { - CAknToolbar* toolbar = Toolbar(); - if ( toolbar ) - { - CAknToolbarExtension* toolbarExtension = toolbar->ToolbarExtension(); - if ( toolbarExtension ) - { - if ( aHide ) - { - toolbarExtension->SetShown( EFalse ); - } - else - { - toolbarExtension->SetShown( ETrue ); - } - } - } - } - + + + + + +Showing +or hiding the toolbar extension +

The toolbar extension is automatically shown when the extension button +is pressed.

+

The extension button is in a latched down state when the extension is open. +If the extension button is pressed again, the extension closes and the extension +button returns to normal state. This also happens if the user clicks somewhere +outside the extension area.

+

By default, the extension is left open when the user selects an item from +the extension. You can change this by defining suitable flags to the button.

+

The example below shown the definition of a toolbar extension with the +button closing the extension when selected.

+RESOURCE AVKON_TOOLBAR_EXTENSION r_myapp_toolbar_extension + { + items = + { + TBAR_CTRL + { + type = EAknCtButton; + id = ECmdExtFirst; + control = AVKON_BUTTON + { + flags = KAknButtonRequestExitOnButtonUpEvent; + states = + { + AVKON_BUTTON_STATE + { + extension = r_myapp_toolbar_ext_first; + } + }; + }; + }, +… + } + }; + } + +

You can also show or hide the toolbar extension in your application using +the methods in the class CAknToolbarExtension.

+

The example below shows how to hide or show the toolbar extension.

+void CMyAppView::ChangeToolbarExtensionVisibility( TBool aHide ) + { + CAknToolbar* toolbar = Toolbar(); + if ( toolbar ) + { + CAknToolbarExtension* toolbarExtension = toolbar->ToolbarExtension(); + if ( toolbarExtension ) + { + if ( aHide ) + { + toolbarExtension->SetShown( EFalse ); + } + else + { + toolbarExtension->SetShown( ETrue ); + } + } + } + } +
\ No newline at end of file