Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Procedure help
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
pr0xiler




PostPosted: Sat Mar 12, 2005 12:00 am   Post subject: (No subject)

yes
Sponsor
Sponsor
Sponsor
sponsor
mike200015




PostPosted: Sat Mar 12, 2005 12:07 am   Post subject: (No subject)

a few questions: 1. what is procedure program?.. it doesnt look like it does anything
2. wheres the code for the the background colour and that title at the top?
mike200015




PostPosted: Sat Mar 12, 2005 12:09 am   Post subject: (No subject)

ok.. here.. check this out and tell me if this is what you wanted
pr0xiler




PostPosted: Sat Mar 12, 2005 12:16 am   Post subject: (No subject)

Quote:
a few questions: 1. what is procedure program?.. it doesnt look like it does anything
2. wheres the code for the the background colour and that title at the top?


1. The program is incomplete.. but its supposed to open a new page up and do various calculations on them once its done.

2. the background color is set on top
GUI.SetBackgroundColour (67)
and the title is set as:
var label1 := GUI.CreateLabel (35, 385, "The Runescape Experience Calculator")

about the program, when a button is pressed i need the screen to clear and the buttons to dispose... leading to the back button which when clicked brings you back to the first page.

Thanks for your help
pr0xiler




PostPosted: Sat Mar 12, 2005 12:24 am   Post subject: (No subject)

I got it working Very Happy . I didnt know of the "forward" and "bdoy procedures until you used them in the program.. i figured it out, thanks a lot.
mike200015




PostPosted: Sat Mar 12, 2005 12:25 am   Post subject: (No subject)

k ill c if i can get it to go to a blank screen n stuff.. i dont work wit GUI's so i dont know much about them, but ill giv it a shot
mike200015




PostPosted: Sat Mar 12, 2005 12:28 am   Post subject: (No subject)

ok.. so what u have to do is, after it says the button thing, then do dispose, but, it doesnt remove the gui's from the screen, i gotta chek how to do that
pr0xiler




PostPosted: Sat Mar 12, 2005 12:29 am   Post subject: (No subject)

ok, thanks
Sponsor
Sponsor
Sponsor
sponsor
mike200015




PostPosted: Sat Mar 12, 2005 12:39 am   Post subject: (No subject)

ok, i didnt totaly get it, but heres the idea of how to get rid of the GUI's.. run the program, and just wait a second, and the gui's will erase.
Bacchus




PostPosted: Sat Mar 12, 2005 12:47 am   Post subject: (No subject)

Quote:
body proc hide
GUI.Hide (strengthButton)
GUI.Hide (attackButton)
GUI.Hide (defenceButton)
GUI.Hide (rangedButton)
GUI.Hide (prayerButton)
GUI.Hide (magicButton)
GUI.Hide (runecraftingButton)
end hide


main
delay (500)
hide
loop
exit when GUI.ProcessEvent
end loop

straight from ur code, see after the delay it hides the 1st column
pr0xiler




PostPosted: Sat Mar 12, 2005 12:56 am   Post subject: (No subject)

Thanks for everyone's help, i finally got everything done! I attatched the final program just to show the final code of the results. 8)


gui1.tu
 Description:

Download
 Filename:  gui1.tu
 Filesize:  6.45 KB
 Downloaded:  46 Time(s)

mike200015




PostPosted: Sat Mar 12, 2005 1:22 am   Post subject: (No subject)

nice.. works great.. u didnt even need to use GUI.Hide? Idea
person




PostPosted: Sat Mar 12, 2005 11:13 am   Post subject: (No subject)

y didnt use GUI.Hide?? if u used it u wouldnt have to declare the buttons over and over again
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 28 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: