msx = mouse X
msy = mouse Y
anche se le cordinate non rientrano in quella condizione
continua a stamparmi OK dicendo che il cursore del mouse e nell'area che ho delimitata
ho provato anche in questo modo
ma fa la stessa e identica cosa
Codice sorgente - presumibilmente Delphi |
If operazione = "selettore" Then ' se il muose su X e superiroe di 240 If msx > 240 Then 'ma se non e minore di 230 If msx < 230 Then 'e se il mouse su Y e superiroe a 179 If msy > 179 Then 'ma non supera il 240 If msy < 240 Then MsgBox("sei nell'area del selettore") End If End If End If End If
|
Potete dirmi dove sbaglio