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

Username:   Password: 
 RegisterRegister   
 GUI stuff
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BoyGenius




PostPosted: Mon May 05, 2003 6:51 pm   Post subject: GUI stuff

i dont think that the tutorial for using message box is there. so if not then can u tell me how to use a message box
Sponsor
Sponsor
Sponsor
sponsor
nate




PostPosted: Mon May 05, 2003 8:09 pm   Post subject: What do you mean?

By message box do you mean like a text feild?

Be more exact!

-Nathan
Tony




PostPosted: Mon May 05, 2003 8:40 pm   Post subject: (No subject)

he probly means like a pop-up message box.

It's suppost to be GUI.Alert but it keeps on telling me that its not an export of GUI module. I think holt screwed up on that.

You could write a custom one. Just pop up a new window and put a button there. For button prosedure just terminate the window.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Homer_simpson




PostPosted: Mon May 05, 2003 8:47 pm   Post subject: (No subject)

yeah same here a lotta gui commands wont work =S
BoyGenius




PostPosted: Tue May 06, 2003 10:13 am   Post subject: (No subject)

k i can do that, mean i can setup another window and a button on it (OK) then when the user clicks on it how would i make that window disapper and return to the main window
Prince




PostPosted: Tue May 06, 2003 10:15 am   Post subject: (No subject)

use GUI.Hide (i think)... if it works it'll make the window disappear
BoyGenius




PostPosted: Tue May 06, 2003 10:33 am   Post subject: (No subject)

I did it. And it didnt work. it gave me an error about an argument ..

any other ways i can make it disapper and return to the main window ?
Prince




PostPosted: Tue May 06, 2003 7:01 pm   Post subject: (No subject)

wait, i think i misread the question... Window.Close should close the window and using Window.Select (winID) would bring it back to the main window... jus remember wat variable name u used 2 open the first window and switch it with winID

code:

Window.Close (win2)
Window.Select (win1)


sumthin like dat
Sponsor
Sponsor
Sponsor
sponsor
BoyGenius




PostPosted: Thu May 08, 2003 7:06 pm   Post subject: (No subject)

k i am doing a chaos game, i did most of it, but i am getting stuck one point. k like when the user clicks three points on the canvas + another point (which goes around the place creating the image), wat do I use ?
Delta




PostPosted: Fri May 09, 2003 8:46 am   Post subject: (No subject)

Well from what I got you guys are stuck somewhere between GUI's and Window's so here is what I think may help you...I think...

To close a window '''Window.Close (winID)''' which you already had
To open a window '''Window.Open("graphics:800;600")'''
To hide a window '''Window.Hide(winID)'''
TO show a window '''Window.Show(winID)'''
Office of the Registar




PostPosted: Fri May 09, 2003 8:56 am   Post subject: (No subject)

don't you just put the dots on the canvas?
Delta




PostPosted: Fri May 09, 2003 9:01 am   Post subject: (No subject)

...? Explain?
BoyGenius




PostPosted: Fri May 09, 2003 10:21 am   Post subject: (No subject)

k like you are given a set of options like how many corner you want -- 3,4,5,6. the user clicks on any of the radio buttons and the user clis on the canvas. like ex. he selects 3 and so he clicks 3 dots on the canvas + another dot. now i also have a draw button. So how do get the coordiantes and in which procedure -- mousedown, mousedrag, mouseUp.
MysticAngel




PostPosted: Fri May 09, 2003 12:57 pm   Post subject: (No subject)

well the coordinates that you get go into mouseDown. The calculations for the distance and the other stuff go into your draw button procedure.
MysticAngel




PostPosted: Fri May 09, 2003 1:02 pm   Post subject: (No subject)

you also need the mouseDrag and mouseUp, but you dont write anything in it. you just call them in your GUI.CreateCanvasFull.in ur mouseDown procedure just draw an oval and say like mousex := x and mousey := y
in ur Draw procedure (or watever it is that u have called ) just calcualte the distance like x := round ((x-x1) * distance + x1) for x and y and for all the corner that you have got. you can use a case statement it is much easier that way
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  [ 15 Posts ]
Jump to:   


Style:  
Search: