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

Username:   Password: 
 RegisterRegister   
 Hiding or Erasing Font.Draw
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MasterCard




PostPosted: Sat Sep 05, 2015 9:38 am   Post subject: Hiding or Erasing Font.Draw

This is my code so far



%Mouse Detection
loop
Mouse.Where(mouseX, mouseY, mouseClick) %365, 430

if mouseY <=140 and mouseY >=80 and mouseX >= 365 and mouseX <=430 then
Font.Draw ("Hello World", 300, 30, font, red)
delay (1000)

else



end if
end loop



I want it so that when on hover, you see hello world (which happens)

But when off hover (else) I dont want to see "Hello World." I want Hello world replaced with nothing!
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sat Sep 05, 2015 11:03 am   Post subject: RE:Hiding or Erasing Font.Draw

There's 2 ways to do this. You could just draw the text again in the background color, which would effectively erase it, or you can just erase everything with cls every loop and re-draw only the things you want to show.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: