/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Meaning of the MENU_codes

Username:     
Password:     
             

Forum

# 1   2010-05-21 09:55:28 Meaning of the MENU_codes

clemzzz
New member
From: Grenoble - FRANCE
Registered: 2010-05-10
Posts: 5

Meaning of the MENU_codes

Hi,

Even after I read this : http://www.stm32circle.com/circleos_doc … 4a844d6c63
I still don't get the meaning of the various MENU_code and what it does when returned (e.g MENU_CHANGE -> Change to what ??).


I haven't found the file that describes how it's treated.

Please dear Circle, enlight me :-)

Thanks, clemzzz

Offline

 

# 2   2010-05-21 18:44:04 Meaning of the MENU_codes

ShadowPhoenix
Member
Registered: 2009-02-11
Posts: 57

Re: Meaning of the MENU_codes

CircleOS  calls your main function loop. Then your main runs, and returns one of the MENU_codes. If it returns MENU_LEAVE that means you want to quit application and CircleOS will not call your main again. If you say MENU_continue, it will call it again.

That makes more sense?

Offline

 

# 3   2010-05-25 08:37:16 Meaning of the MENU_codes

clemzzz
New member
From: Grenoble - FRANCE
Registered: 2010-05-10
Posts: 5

Re: Meaning of the MENU_codes

Ok thanks,

Do you know more about the use of MENU_REFRESH and MENU_CHANGE ?

clemzzz

Offline

 

# 4   2010-05-25 14:54:53 Meaning of the MENU_codes

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Meaning of the MENU_codes

MENU_CHANGE indicates that a new menu has been created, and as its name says, the menu has changed :

Example :
       // Check for operator menu request   
       if ( BUTTON_GetState() == BUTTON_PUSHED )
          {
          BUTTON_WaitForRelease();   
          MENU_Set( (tMenu*) &myMenu );
          return MENU_CHANGE;
          }


MENU_REFRESH forces the system to redraw the current menu, by invoking the function MENU_Set.
Example : function "MsgVersion" in application.c.

Offline

 

# 5   2010-05-26 08:23:06 Meaning of the MENU_codes

clemzzz
New member
From: Grenoble - FRANCE
Registered: 2010-05-10
Posts: 5

Re: Meaning of the MENU_codes

Thank you,
This will help me a lot ;-)

clemzzz

Offline

 

Board footer