Toolbar in Symbian^3 like in 5th edition
Hi,
is there a way to get the same look for the toolbar in Symbian^3 that we had in the 5th edition ?
I refer to this example in the wiki :
[url]http://www.developer.nokia.com/Community/Wiki/Working_with_Toolbar_API_-_S60_Touch_UI[/url]
I would have the same look as that ...
thanks in advance,
Domi.
Re: Toolbar in Symbian^3 like in 5th edition
AFAIK if you use standard components, the look & feel comes from the platform. So if you want to differ , you should do custom control for the task.
Anyway, the point in general is that, users would prefer to have all things similarly implemented, since that makes it easier to learn and use applications. There are plenty of users who are using S^3 devices, and would have never used 5th edition, so they would probably be puzzled to see different design that what they are expecting.
Re: Toolbar in Symbian^3 like in 5th edition
Hi symbianyucca,
that's true, I agree with you; at the developer point of view, it's another question : it's harder to maintain but ... our goal is the end-users :-)
BTW: it would have been interesting to have the example in wiki updated for S^3.
Domi.
Re: Toolbar in Symbian^3 like in 5th edition
back to my first post :
when using toolbar extension (EAknCtToolbarExtension), the system displays 3 parallel lines, but is it possible to use a personal icon instead of the one used by the system ? I have tried to put bmpfile, bmpid & bmpmask but these give me an error ....
Tkx,
Domi.
Re: Toolbar in Symbian^3 like in 5th edition
Someone will probably ask what error you have got, and when (build? runtime?).
Re: Toolbar in Symbian^3 like in 5th edition
oops ! that's right wizard_hu_ !! sorry.
the compiler fails to compile the resource, I have tried several stuff of code but I get always the same error : 'Label not found'
[QUOTE]
TBAR_CTRL
{
type = EAknCtToolbarExtension;
bmpfile = FEP_BMPFILE_TOOLBAR; [B]<< label not found although it exists.[/B]
bmpid = EMbmFexplorertbCheck;
bmpmask = EMbmFexplorertbCheck_mask;
control = AVKON_TOOLBAR_EXTENSION
{
flags = KAknTbExtensionTransparent;
items =
{
...
[/QUOTE]
[QUOTE]
TBAR_CTRL
{
type = EAknCtToolbarExtension;
control = AVKON_TOOLBAR_EXTENSION
{
flags = KAknTbExtensionTransparent;
bmpfile = FEP_BMPFILE_TOOLBAR; [B]<< label not found although it exists.[/B]
bmpid = EMbmFexplorertbCheck;
bmpmask = EMbmFexplorertbCheck_mask;
items =
{
...
[/QUOTE]
Domi.
Re: Toolbar in Symbian^3 like in 5th edition
How is it defined ? and where ?
Basically you would need to define it in s way that its seen form the place it is used at.
Re: Toolbar in Symbian^3 like in 5th edition
I use it previously without problem.
this code works fine in the following, the labels are ok, I get the error only when I try to put the icon in the extension maybe I need another keyword, label,??? I don't know.
[QUOTE]
RESOURCE AVKON_TOOLBAR r_fexplorer_toolbar
{
flags = KAknToolbarFixed;
items =
{
TBAR_CTRL
{
type = EAknCtButton;
id = EEditMarkCmdId;
control = AVKON_BUTTON
{
states =
{
AVKON_BUTTON_STATE
{
helptxt = "Mark(un-)";
[B]bmpfile = FEP_BMPFILE_TOOLBAR;[/B]
[B]bmpid = EMbmFexplorertbCheck;[/B]
[B]bmpmask = EMbmFexplorertbCheck_mask;[/B]
}
};
};
},
TBAR_CTRL
{
type = EAknCtToolbarExtension;
control = AVKON_TOOLBAR_EXTENSION
{
flags = KAknTbExtensionTransparent;
items =
{
...
[/QUOTE]
"[I]Basically you would need to define it in s way that its seen form the place it is used at.[/I]" >> sorry but I don't understand what you mean.
btw: thanks in advance.
Domi.
Re: Toolbar in Symbian^3 like in 5th edition
[QUOTE=Jeepy;909097]"[I]Basically you would need to define it in s way that its seen form the place it is used at.[/I]" >> sorry but I don't understand what you mean.
.[/QUOTE]
Where is FEP_BMPFILE_TOOLBAR defined and how ?
and did you include the file in which the FEP_BMPFILE_TOOLBAR is defined in a way that the place where you use FEP_BMPFILE_TOOLBAR can see teh definition.
Re: Toolbar in Symbian^3 like in 5th edition
FEP_BMPFILE_TOOLBAR, EMbmFexplorertbCheck, EMbmFexplorertbCheck_mask are correctly defined because, as said in the previous post, if I remove them in extension, all compile fine; I mean it compiles with these symbols used in the other part of the .rss therefore these symbols are ok.
Re: Toolbar in Symbian^3 like in 5th edition
bmpfile ,bmpid etc 'labels' are not available for that resource tag(TBAR_CTRL) directly, though you can use these inside its sub-tag(i.e AVKON_BUTTON_STATE), you can define these labels for the use with extension in the following way:
[url]http://koti.mbnet.fi/flex/softa/S60_5th_Edition_Mobile_Paint_Example_v1_0_en/MobilePaintExample/data/MobilePaint.rss[/url] (search for [B]EAknCtToolbarExtension[/B] & notice how it is used)