Help on mouse click 
Author Message
 Help on mouse click
I have this problem:

in my application a button fire a long computing operation an at the start
of it I change the
mopuse pointer to Hourglass, but the click of the mouse is still active.

The question is: Is there a method or a set of API call that intecept the
mouse click on the form to prevent user actions during the process ?
I can't set the Enable property = False of the form because on the form I
have a third party control that cause some drawing problem and I think that
intercepting the mouse click will be a possible solution .... but I don' t
know how to realize that. (I don't want to disable all possible controls on
form individually)

Thanks in advance

Fabrizio



Sun, 25 Nov 2001 03:00:00 GMT  
 Help on mouse click
usa una variabile boolean che metti a true all'inizio e a false alla fine
se riclicchi e la variabile e' tru exit sub

sub button_click()
on errror goto errore
 if gia_premuto=true then exit sub
   gia_premuto=true
   codice....
   gia_premuto=false
exit sub
errore:
gia_premuto=false
end sub



Sun, 25 Nov 2001 03:00:00 GMT  
 Help on mouse click

Quote:

> usa una variabile boolean che metti a true all'inizio e a false alla fine
> se riclicchi e la variabile e' tru exit sub

> sub button_click()
> on errror goto errore
>  if gia_premuto=true then exit sub
>    gia_premuto=true
>    codice....
>    gia_premuto=false
> exit sub
> errore:
> gia_premuto=false
> end sub

probabilmente non mi sono spiegato in modo esuriente ....

Il mio desiderio era quello di trovare una soluzione abbastanza generica da
poter poi inserire in una
routine che si occupa di visualizzare la clessidra, e qualche altra
operazione del genere, quando presuppongo che "debba passare un po' di
tempo! ....
Inserendo quindi in quel punto una qualche soluzione valida in generale mi
darebbe la possibilit di replicare
in tutte le mie applicazione questa funzionalit per questo immaginavo le
APi come strada possibile ... (sto cercando ma non trovo niente che faccia
al caso mio)
Volevo evitare di spargere codice per i casi particolari anche perch dovrei
spargere quel tipo di controllo via codice su tutti i controlli della form
in grado di ricevere il Focus
L'alternativa immediata sarebbe quella di disabilitare in modo automatico
tutti i controlli sulla form ma questo vorrebbe dire ricordarsi in che stato
erano prima di disabilitarli .... prima di arrivare a questi stratagemmi
mi sarebbe piaciuto vedere se esisteva una soluzione un po pi raffinata.

Grazie comunque

Fabrizio



Sun, 25 Nov 2001 03:00:00 GMT  
 Help on mouse click

Quote:

>The question is: Is there a method or a set of API call that intecept the
>mouse click on the form to prevent user actions during the process ?

I think you could use the SetCapture API to cause all mouse clicks to go to
another form (perhaps one positioned off-screen), or to a specific control
on your form.

However, the user could probably still use the keyboard to cause actions on
your form.

J. Bodie



Mon, 26 Nov 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help: Right Mouse Click on Standard Text Box!!!

2. Help: Right Mouse Click on Standard Text Box!!!

3. Help: Right Mouse Click on Standard Text Box!!!

4. Help on mouse click

5. label click event only works with right mouse click

6. Mouse clicking without clickinmg the Mouse

7. How to include an ordinairy mouse-click in a right-click

8. MOUSE CLICK - SENDING CLICK

9. Enable/Disable mouse clicks and keyboard key clicks

10. Help: Tab vs. mouse click

11. Help : Mouse click

12. How to make Right Mouse Click Help Popups?

 

 
Powered by phpBB® Forum Software