Computer Science Canada Procedures won't take me back to main menu |
Author: | syntax0r [ Thu May 05, 2005 9:23 pm ] | ||
Post subject: | Procedures won't take me back to main menu | ||
Im building a big project for my Compsci class, and I have started making an idea of how my main menu will function.
I commented where my problem is. Basically, it goes like this. I create some GUI buttons to make a menu. Clicking on the button will result in a procedure being executed. For example, I click on "Options" and on the options submenu, I have button linking me back to my main menu. When I try to do something like this, I always end up with a process name not being declared. I tried making the "create GUI buttons" in to a procedure, so then when I click "return to main menu" on any submenu screen. However, that created an conflict. I know Im doing something wrong, as I've seen more complex programs in Turing have a main menu and sub menus that all work as a family. Im new to Turing's proc, fnc other non-linear ways of creating Turing programs. So I dont have a mindset on this non-linear programming. Any comments/tips/suggestions would greatly be appreciated! |
Author: | syntax0r [ Fri May 06, 2005 8:13 pm ] | ||
Post subject: | |||
Ok, maybe I was rather vague. Here's a more defined thing I want to accomplish.
Run it, see what I mean. I hope there's a way to get out of this ugly mess! |
Author: | Tony [ Sat May 07, 2005 1:31 pm ] | ||
Post subject: | |||
well you cls the screen. Why would you clear the screen? Clearly you have to draw it back. I donno, try something like
or be creative |
Author: | syntax0r [ Sat May 07, 2005 8:01 pm ] |
Post subject: | |
I clear the screen so I can put new content. It's like opening a new page. I think it has to do with the buttons (my problem). I have to declare a proc within a button, which makes things so hard. |
Author: | Tony [ Sat May 07, 2005 8:59 pm ] |
Post subject: | |
that's right. Now when you go back to the menu, you have to once again clear the screen and draw the content |
Author: | syntax0r [ Sat May 07, 2005 10:46 pm ] |
Post subject: | |
Oh really? Hehehe, Didn't think of that! How foolish of me. Thanks! What sucks is that my code will get quite excessive. |