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

Username:   Password: 
 RegisterRegister   
 Different 'get' font and colour
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Wreathe




PostPosted: Fri Apr 22, 2011 10:48 am   Post subject: Different 'get' font and colour

What is it you are trying to achieve?
When a user enters a word, I want to change the font and colour so that they can write in different font and colour.

What is the problem you are having?
I know the Draw.Font command but i don't know if this can work in here and i don't know how either.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
%I want the user to input word with different font and colour.
drawfillbox (1,1,maxx,maxy, black)

var answer:string
locate (15,54)
colorback (black)
get answer


Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Fri Apr 22, 2011 11:01 am   Post subject: RE:Different \'get\' font and colour

You can change the color of the standard 'get', however you can't change the font. If you want to, you'll need to use getch() and Font.Draw to make your own text fields.
Wreathe




PostPosted: Fri Apr 22, 2011 11:11 am   Post subject: Re: RE:Different \'get\' font and colour

Insectoid @ Fri Apr 22, 2011 11:01 am wrote:
You can change the color of the standard 'get', however you can't change the font


yea but how do i change the color of the standard 'get'?
Tony




PostPosted: Fri Apr 22, 2011 11:33 am   Post subject: RE:Different \'get\' font and colour

possibly with the color command.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Wreathe




PostPosted: Fri Apr 22, 2011 12:00 pm   Post subject: Re: RE:Different \'get\' font and colour

Tony @ Fri Apr 22, 2011 11:33 am wrote:
possibly with the color command.

WOW! I feel soo DUMB! Thanks for the answer. Anyway... what grade are you in Tony? You seem to be the 'expert' around here.
Insectoid




PostPosted: Fri Apr 22, 2011 12:04 pm   Post subject: RE:Different \'get\' font and colour

Tony's in grad school.
Tony




PostPosted: Fri Apr 22, 2011 2:25 pm   Post subject: RE:Different \'get\' font and colour

well, I'm certainly old enough to be in grad school. Will finish undergrad this year though. Switching majors has been a big setback to the schedule.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Insectoid




PostPosted: Fri Apr 22, 2011 2:31 pm   Post subject: RE:Different \'get\' font and colour

My bad.
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: