Symbian
Symbian OS Library

FAQ-0725 How can I position my toolbar on the left instead of the right of my application?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: EIKON
Created: 08/17/2001 Modified: 09/20/2001
Number: FAQ-0725
Platform: ER5

Question:
How can I position my toolbar on the left instead of the right of my application?

Answer:
An increasing number of third party applications are offering the user an option to show the toolbar on the left or the right of the screen. To move the toolbar you can use code along the following lines:

iToolBar->SetControlLayout(CEikControlGroup::EFromTopLeft,CEikControlGroup::ELayVertically);
// Position toolbar at left of screen
iToolBar->SetPosition(TPoint(0,0));
// Make toolbar visible and layout buttons
iToolBar->MakeVisible(ETrue);
iToolBar->LayoutControlsL();
iToolBar->DrawNow();