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

Username:   Password: 
 RegisterRegister   
 Is a print button possible?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Blackfire




PostPosted: Thu Oct 08, 2009 5:26 pm   Post subject: Is a print button possible?

What is it you are trying to achieve?
Trying to make a print button


What is the problem you are having?
Cant find out if making a print button is possible

Describe what you have tried to solve this problem
Google, compsci search


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


Turing:


% Ask for name,age,town and nation

var name : string
var age : int
var town : string
var nan : string
var i : int := 0


drawfillbox (0,0,639,399,255)
colorback(255)
color(12)
put "User Infomation Sheet"
put ""
put ""

put "Please enter your name"
get name:*

put "What is your age?"
get age

put "What is your town's name?"
get town

put "What is your county?"
get nan

 





Please specify what version of Turing you are using
No idea, just got it off the link from this site
Sponsor
Sponsor
Sponsor
sponsor
andrew.




PostPosted: Thu Oct 08, 2009 5:38 pm   Post subject: RE:Is a print button possible?

I'm not sure if making a print button is possible. To make any button, you must use the GUI module. Press F10 in Turing and search GUI and read up about it. Judging by the complexity of your code, you are nowhere near using the GUI (no offence). Once you start learning more Turing, then you can go further on a try the GUI module.
Blackfire




PostPosted: Thu Oct 08, 2009 5:42 pm   Post subject: Re: RE:Is a print button possible?

andrew. @ Thu Oct 08, 2009 5:38 pm wrote:
I'm not sure if making a print button is possible. To make any button, you must use the GUI module. Press F10 in Turing and search GUI and read up about it. Judging by the complexity of your code, you are nowhere near using the GUI (no offence). Once you start learning more Turing, then you can go further on a try the GUI module.


Well ya this is a simple simple program im making just for practice.
Having a test on Turing, thanks for your help.
Kharybdis




PostPosted: Thu Oct 08, 2009 8:10 pm   Post subject: RE:Is a print button possible?

You can make a button... and then when the user presses it, make it print the current page.

You have to run an included module and specify what you want to use to print (a.k.a. you have to specify the printer name).
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  [ 4 Posts ]
Jump to:   


Style:  
Search: