Computer Science Canada

Is a print button possible?

Author:  Blackfire [ 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

Author:  andrew. [ 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.

Author:  Blackfire [ 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.

Author:  Kharybdis [ 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).


: