Raised This Month: $ Target: $400
 0% 

Menu not showing up


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2011 , 17:48   Re: Menu not showing up
Reply With Quote #1

Quote:
Originally Posted by Erox902 View Post
won't they get screwed up in the handler I mean when you:
PHP Code:
public menuHandler(idmenuitem
?
No. Those are local variables also. You can think about it like this: The variables in the function declaration are newly created local variables that are auto-populated by the calling function. So, when menuHandler() is called, it creates the three variables id, menu, and item. Then it sets their value as supplied by the function that is calling it (the new menu system).

So, the variable "menu" will contain the menu pointer of the menu that just had an option chosen from it.
__________________
fysiks is online now
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 06-17-2011 , 19:15   Re: Menu not showing up
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
No. Those are local variables also. You can think about it like this: The variables in the function declaration are newly created local variables that are auto-populated by the calling function. So, when menuHandler() is called, it creates the three variables id, menu, and item. Then it sets their value as supplied by the function that is calling it (the new menu system).

So, the variable "menu" will contain the menu pointer of the menu that just had an option chosen from it.
Thnx for explaning
Erox902 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode