
-----------------------------------
yeyavailability
Tue May 27, 2008 5:08 pm

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:



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 = 40 and my 