Computer Science Canada Button help! |
Author: | Nathan4102 [ Mon Mar 18, 2013 6:39 pm ] | ||
Post subject: | Button help! | ||
What is it you are trying to achieve? A Clickable button. What is the problem you are having? When I make a button using the View.Set Parameter "offscreenonly", my buttons aren't clickable. Describe what you have tried to solve this problem I have tried calling View.Set again after I do my animations before I print my button, but this doesn't make it clickable. I'm not really sure what else to do since I'm still pretty novice with Turing. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) This is the code for my program. The button in question is found on line 70 of 75. My code is probably messy and has some imperfections, I'll clean it up later, you don't have to do that. ![]()
Please specify what version of Turing you are using Turing 4.1 |
Author: | Insectoid [ Mon Mar 18, 2013 6:53 pm ] |
Post subject: | RE:Button help! |
It looks to me like your button works just fine. It just doesn't do anything. It calls NextSlide. What does NextSlide do? |
Author: | Nathan4102 [ Mon Mar 18, 2013 7:11 pm ] |
Post subject: | Re: Button help! |
I havn't coded that bit yet. For me, the button doesn't work though. When I click it, nothing happens, and when I stop, it spawns a new window and highlights a delay in function ProcessEvent, which I guess means its still looking for the button press. If I don't do offscreenonly for View.Set though, it works fine, although the animations flicker really badly. Any ideas? ![]() |
Author: | Insectoid [ Mon Mar 18, 2013 7:20 pm ] |
Post subject: | RE:Button help! |
The button does work. Nothing happens because the button doesn't do anything yet. Why not try outputting some text inside NextSlide? |
Author: | Nathan4102 [ Tue Mar 19, 2013 12:44 pm ] |
Post subject: | RE:Button help! |
Whoops, my bad. Thanks! |