Menu madness

マイコン(主にTI)ソフトウエア日英掲示板
Discussions about microcontroller (mostly TI) software (english - japanese)

Re: Menu madness

Postby celeritas » Thu Jul 08, 2010 10:34 pm

pascal wrote:.....
2. If you use CrtMenu and update it each time you change the menu contents, then
you can just display the menu. If you use the CrtMenu pointer, then it will display
the menu that was last used.
......


I know that i really occupied here.Sorry for that...

I understand that i couldn't express myself & my problem clearly. (Because of my english,i guess)

How can i update CurrentMenu? I don't know how! I need code for this.
For ex:
CurrentMenu = MainMenuData; // isn't acceptable according to your code.

So how? What should i write to update CurrentMenu? What is the part of the code to update CurrentMenu?
celeritas
 
Posts: 6
Joined: Fri Jul 02, 2010 10:03 pm

Re: Menu madness

Postby pascal » Thu Jul 08, 2010 10:48 pm

Hello!

You cannot assign MainMenuData to CrtMenu because MainMenuData is an array of menu items.
Therefore MainMenuData can be assigned to to CrtMenu.mItem which is a pointer to menu items.
Similarily, you can assign MainMenuItemCount to CrtMenu.mCount and you're done.

Pascal


celeritas wrote:
pascal wrote:.....
2. If you use CrtMenu and update it each time you change the menu contents, then
you can just display the menu. If you use the CrtMenu pointer, then it will display
the menu that was last used.
......


I know that i really occupied here.Sorry for that...

I understand that i couldn't express myself & my problem clearly. (Because of my english,i guess)

How can i update CurrentMenu? I don't know how! I need code for this.
For ex:
CurrentMenu = MainMenuData; // isn't acceptable according to your code.

So how? What should i write to update CurrentMenu? What is the part of the code to update CurrentMenu?
pascal
Site Admin
 
Posts: 231
Joined: Sun Mar 04, 2007 11:47 am

Re: Menu madness

Postby celeritas » Thu Jul 08, 2010 11:27 pm

pascal wrote:Hello!

... MainMenuData can be assigned to to CrtMenu.mItem which is a pointer to menu items.



I feel stupid :roll: Why couldn't i see?... I was really confused. Now my way is clear.

Thank you pascal...
celeritas
 
Posts: 6
Joined: Fri Jul 02, 2010 10:03 pm

Previous

Return to Microcontroller software

Who is online

Users browsing this forum: No registered users and 1 guest

cron