Computer Science Canada How do i make pictures be clickable? PLZ HELP ME THIS IS URG |
Author: | cema_seven [ Wed Jun 14, 2006 4:53 pm ] |
Post subject: | How do i make pictures be clickable? PLZ HELP ME THIS IS URG |
In turing i have to make an ISU and i forgot how to make pictures so that i can click the like a button. someone plz help me |
Author: | TheOneTrueGod [ Wed Jun 14, 2006 4:58 pm ] |
Post subject: | |
you have to check the mouse's position, and if the button is held down and if its in an area inside the picture, then make something happen... Research mousewhere (or Mouse.Where, they are effectively the same thing, but one is a part of the Mouse module, and one isn't...) Both are in the F10 help menu, or probably in the [Turing Walkthrough] |
Author: | cema_seven [ Wed Jun 14, 2006 4:59 pm ] |
Post subject: | |
*** click them like a button *** |
Author: | Clayton [ Wed Jun 14, 2006 5:10 pm ] |
Post subject: | |
well i dont know for sure, but i think you can do picture buttons with turing (probably not though), if you cant, just draw the picture over turings gui buttons (or make your own button class ![]() |
Author: | cema_seven [ Wed Jun 14, 2006 5:13 pm ] |
Post subject: | |
can you please some how tell me an example code cause i tryed looking but i can't find anything and i dunno any codes |
Author: | Clayton [ Wed Jun 14, 2006 5:15 pm ] |
Post subject: | |
look in the Turing Walkthrough at the Pic commands and the GUI commands, we are not going to do this for you, you have to do some research first and show us what youve attempted, then well help you out some more |
Author: | BenLi [ Thu Jun 15, 2006 8:52 pm ] | ||
Post subject: | |||
|
Author: | BenLi [ Thu Jun 15, 2006 8:55 pm ] | ||
Post subject: | |||
if you don't know the coordinates of the pic...
|
Author: | Bored [ Fri Jun 16, 2006 9:20 am ] | ||
Post subject: | |||
Well here is a psuedo code version that describes the basic logic of a button.
|