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

Username:   Password: 
 RegisterRegister   
 button recall?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
bgmrk




PostPosted: Thu Jan 26, 2006 10:06 pm   Post subject: button recall?

is there ne way to recall a button after u declare it

code:

var charwindow :int := Window.Open ("graphics:350;300,position:center;center,nobuttonbar")
%%%character choice
%%colours
procedure blue1
col1 := 9
end blue1
procedure black1
col1 := 7
end black1
procedure orange1
col1 := 41
end orange1
procedure green1
col1 := 6
end green1
procedure red1
col1 := 12
end red1
var bluebutton : int := GUI.CreateButton (100,100,0,"Blue",blue1)
var orangebutton : int := GUI.CreateButton (100,200,0,"Orange",orange1)
var blackbutton :int := GUI.CreateButton (100,300,0,"Black",black1)
var greenbutton : int := GUI.CreateButton (125,150,0,"Green", green1)
var redbutton : int := GUI.CreateButton (150,275,0, "Red", red1)
%player 1
colourback (green)
cls
locate (1,15)
put "PLAYER 1"
locate (3,1)
put "Please type a name for your character"
get player1
cls
locate (1,15)
put "PLAYER 1"
locate (3,1)
put "Please select a colour for your character"



i want to recall the buttons that i created above... and then i'll need to call it again for player 2.. how would i do this?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Jan 26, 2006 10:15 pm   Post subject: (No subject)

by "recall" I guess that you mean draw what you have erased with cls? Laughing

The buttons are still there and functional. If you press on them, I think they might reappear Wink

There is likely to be a GUI.something that refreshes your widgets, but you'd have to look through the documentation for an appropriate command.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
bgmrk




PostPosted: Thu Jan 26, 2006 10:20 pm   Post subject: (No subject)

oo thanx i got it GUI.Refresh does that for me. thanx 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 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: