Button not appearing at the right spot?
Author |
Message |
yeyavailability
|
Posted: Tue May 27, 2008 5:08 pm Post subject: Button not appearing at the right spot? |
|
|
I don't really know how to phrase this properly. This may be a face palm question, but whatever I did wrong I can't figure it out.
Basically, I am using the most noobish way of creating a psuedo-checkbox, by replacing the images upon the click of the general area of the button:
Turing: |
procedure button1 ()
picture1 := Pic.FileNew ("no_check.bmp")
Pic.SetTransparentColor (picture1, white)
Pic.Draw (picture1, 40, 295, picMerge)
Font.Draw ("ANIMATION", 85, 305, F_verdanaN, black)
Pic.Free (picture1 )
end button1
procedure checkmark ()
check_pic := Pic.FileNew ("yes_check.bmp")
Pic.Draw (check_pic, 40, 295, picMerge)
Pic.Free (check_pic )
end checkmark
loop
Mouse.Where (mx , my , mb )
if mx >= 40 and mx <= 295 and my >= 40 and my <= 295 and mb = 1
then checkmark
delay (200)
cls
end if
end loop
|
(Code is really messy because they're about five inches worth of scrolling I haven't put on here.) I'm new to the extreme at using the Mouse.Where (I just found out about literally ten minutes ago). The turing help files always confuses me, my teacher just sits there and it takes forever for him to answer questions--also, he was absent today and this is due at the beginning of the next time I have his class. I would appreciate it so much if someone can point out to me what I did wrong.
Thankyou~ |
|
|
|
|
|
Sponsor Sponsor
|
|
|
gitoxa
|
Posted: Tue May 27, 2008 5:31 pm Post subject: RE:Button not appearing at the right spot? |
|
|
open a new window, and use this command.
code: | drawfillbox (40, 40, 295, 295, black) |
This is the area your if statement is checking for. Judging by where your pictures are beig drawn, I'm going to assume this isn't quite right? |
|
|
|
|
|
yeyavailability
|
Posted: Tue May 27, 2008 5:56 pm Post subject: Re: RE:Button not appearing at the right spot? |
|
|
gitoxa @ 27/5/2008, 5:31 pm wrote: open a new window, and use this command.
code: | drawfillbox (40, 40, 295, 295, black) |
This is the area your if statement is checking for. Judging by where your pictures are beig drawn, I'm going to assume this isn't quite right?
glaksdhdg >_> Thankyou! I can't believe I didn't think of that. |
|
|
|
|
|
|
|