English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how can i write a code for any caption for example,if i want5 to click on "no",thn the no button keeps on moving in the whole form.i.e.the pointer doest get hold of it.

2007-01-07 19:27:58 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

If I understand the question, you want to move the button around so it's impossible to click on it. What you want to do is track the mouse pointer location. Then write a conditional something like:
If mouse.left - button.left < 10 pixels or mouse.top - button.top < 10 then
mouse.left = random number
mouse.top = another random number
end if

That way if the mouse gets within 10 pixels of the button it moves. Use a random number generator to get the randoms.

For mouse location it might be X and Y coordinates instead of left and top

2007-01-07 19:37:15 · answer #1 · answered by rod 6 · 0 0

fedest.com, questions and answers