Hiding Icons in the Menu

Login to reply to this topic.
Wed, 2005-10-05 04:23
Joined: 2005-08-01
Forum posts: 44
Hi all,

I'm reading "forum nokia technical solution v1.7", in section 4.22 there's an article about "Hiding Icons in the Menu" which has the following code :

RESOURCE AIF_DATA {
   app_uid=...;
   num_icons=2;
   embeddability=KAppNotEmbeddable;
   newfile=KAppDoesNotSupportNewFile;
   hidden=KAppIsHidden;
}

Well..I've tried it, but it has no effect at all, the icon is still shown in the menu.....anyone knows why? If someone already tried the above code and succeed, please share it with us.

Thank you

Irma

Wed, 2005-10-05 08:00
Joined: 2005-01-06
Forum posts: 18
Re: Hiding Icons in the Menu
It worked for me sometime back.
try changing

num_icons=0;


Thu, 2005-10-06 04:14
Joined: 2005-08-01
Forum posts: 44
Re: Hiding Icons in the Menu
I've done that too, change the num_icon = 0, and put it in the RSS file, right?

But, I would like to ask about :
- I've changed the the mmp file too, eliminate AIF...and still not working
- How to compile AIF file? I just build the RSS file....is that it? because I tried to do AIF <APP NAME> <APP NAME>.RSS and the AIF file provided by that function made an error in my application...so I guess that way is wrong


Thanx in advance
Thu, 2005-10-06 05:43
Joined: 2004-01-09
Forum posts: 188
Re: Hiding Icons in the Menu
RESOURCE AIF_DATA {
   app_uid=...;
   num_icons=2;
   embeddability=KAppNotEmbeddable;
   newfile=KAppDoesNotSupportNewFile;
   hidden=KAppIsHidden;
}


AFAIC the above code in aif is sufficient to hide the Application icon in the Application menu. Have your reallyclean your application and tried to rebuild it? I think your AIF is not updated?

----
Chetan Kulshrestha

Thu, 2005-10-06 07:26
Joined: 2005-01-06
Forum posts: 18
Re: Hiding Icons in the Menu
ya chetan is right,your AIF is not updated.Try building it again after cleaning it with reallyclean
it must work for you.
if it is still giving some problem, try modifying your mmp file
for eg. instead of writing this
AIF AknExList.aif ..\aif AknExListaif.rss c12 \
    AknExList_Icon.bmp AknExList_Icon_mask.bmp aknexlist_lst.bmp aknexlist_lst_mask.bmp

write
AIF AknExList.aif ..\aif AknExListaif.rss
Fri, 2005-10-07 03:13
Joined: 2005-08-01
Forum posts: 44
Re: Hiding Icons in the Menu
Hi all,

Thanx for your suggestions


I just want to recheck my steps, please tell me if

I've done something wrong :

- I use symbian C++ 7.0, with visual C++
- my app's name is IO_Test
- I put this in the last line of my IO_Test.rss
   RESOURCE AIF_DATA {
      app_uid=0x0767D54D;
      num_icons=0;
      embeddability=KAppNotEmbeddable;
      newfile=KAppDoesNotSupportNewFile;
      hidden=KAppIsHidden;
   }

- I change the MMP file from
   AIF IO_test.aif ..\aif IO_testaif.rss c8

context_pane_icon.bmp context_pane_icon_mask.bmp

list_icon.bmp list_icon_mask.bmp

into : AIF IO_test.aif ..\aif IO_testaif.rss


- I've cleared all of the previous build by searched

from the searching menu...and delete all IO_Test file

under Epoc32 folder

- I Ctrl-F7 the .rss file

- I build (F7) the app

- I build "abld build armi urel" from the command line

- send it to 6600 through bluetooth

- and...it doesn't work Cry

Do my steps are right/not? or do I have to compile the

AIF file in a special way?



Thanx in advance,


irma
Fri, 2005-10-07 04:30
Joined: 2004-01-09
Forum posts: 188
Re: Hiding Icons in the Menu
Ya your steps are correct ... but anyway don't take risk... always give commands in proper steps.. close your application from IDE...
open command prompt... change path to your group folder ( or where ever your application bld.inf file exist). Now give these comands.

bldmake clean
bldmake bldfiles
abld reallyclean
abld build armi urel ( for release )
abld build wins udeb ( for wins emulator)

----
Chetan Kulshrestha

Fri, 2006-10-13 08:52
Joined: 2006-09-12
Forum posts: 41
Re: Hiding Icons in the Menu
I have this same problem. I always build from the command line and always reallyclean first.

I don't seem to be able to remove it from 'My own'.

How did you end up solving the problem?

Max.
Fri, 2006-10-13 10:11
Joined: 2006-09-12
Forum posts: 41
Re: Hiding Icons in the Menu
aha!

I found the problem (well, it solved it for *me*, but I'm no expert).

The changes detailed above are not supposed to be to the aif file, but to a data/<appname>_reg.rss file. See section "5. Registration file" in the S60_Platform_Porting_from_2nd_to_3rd_Edition_v1_1_en.pdf file. They should be to a 'APP_REGISTRATION_INFO' resource structure.

HTH.

Max.
  • Login to reply to this topic.