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

Username:   Password: 
 RegisterRegister   
 Pictures beside put statements
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
hamid14




PostPosted: Sun Oct 18, 2009 2:11 pm   Post subject: Pictures beside put statements

I wanna put a picture of a blue potion.BMP beside the output from put statement. I tried drawing the pic beside it, but it was hidden behind the put line. I'm using turing 4.1 version.

here is the code

var bluepic : int := Pic.FileNew ("bluepotion2.BMP")

put "This is a blue potion!"




Btw, i removed the draw pic from this, it didn't work. Thanks in advance.
Sponsor
Sponsor
Sponsor
sponsor
DtY




PostPosted: Sun Oct 18, 2009 2:13 pm   Post subject: RE:Pictures beside put statements

Put always draws a background, so it will clear whatever is behind it. It should work though if you put the text, and then draw the image afterwards
hamid14




PostPosted: Sun Oct 18, 2009 2:30 pm   Post subject: Re: Pictures beside put statements

OMG! Thank you very much! Solution was so simple, but I didn't get it. So ashamed...
Kharybdis




PostPosted: Sun Oct 18, 2009 6:34 pm   Post subject: Re: Pictures beside put statements

another solution would be to use the command Font.Draw.

It draws text without drawing a background.
ecookman




PostPosted: Sun Oct 18, 2009 8:47 pm   Post subject: RE:Pictures beside put statements

then you can use Font.New and customize your font. Look in the help for the description on how to use the function.
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  [ 5 Posts ]
Jump to:   


Style:  
Search: