🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #355

Re: mouse ocx

#355
From: Cerberus
Date: Sat, 07 Oct 2006 11:26
65 lines
3631 bytes
"Papais Elio Enzo" <support@infoportal.it> ha scritto nel messaggio
news:45266933$0$25890$4fafbaef@reader1.news.tin.it...
> e' gia' gestito interamente da VB...
> "Alex" <alex-mail@libero.it> ha scritto nel messaggio
> news:451adbb6.10924531@news.libero.it...
> > esiste un ocx che gestisce il mouse, compreso il click?
> > grazie
>
>

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single,
Y As Single)
'quando si preme un tasto del mouse
'Button � il numero del pulsante
'Shift � se � premuto il tasto shift durante il click
'x e y sono le coordinate del mouse nel momento del click
Dim Frase As String
Frase = "il tasto premuto � il numero " & Button & vbCrLf
Frase = Frase & "il stato Shift " & IIf(Shift <> 0, "� stato premuto", "non
� stato premuto") & vbCrLf
Frase = Frase & "le coordinate sono " & X & ":" & Y
MsgBox Frase
'Me.MouseIcon = LoadPicture("Percorso dell'immagine da visualizzare")
'Me.MousePointer = costante '(cambia la modalit� del cursore)
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single,
Y As Single)
'quando si muove il mouse su un determinato oggetto
'Button � il numero del pulsante
'Shift � se � premuto il tasto shift durante il click
'x e y sono le coordinate del mouse nel momento del click
Dim Frase As String
Frase = "il tasto premuto � il numero " & Button & vbCrLf
Frase = Frase & "il stato Shift " & IIf(Shift <> 0, "� stato premuto", "non
� stato premuto") & vbCrLf
Frase = Frase & "le coordinate sono " & X & ":" & Y
MsgBox Frase
'Me.MouseIcon = LoadPicture("Percorso dell'immagine da visualizzare")
'Me.MousePointer = costante '(cambia la modalit� del cursore)
End Sub

Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y
As Single)
'quando si rilascia un tasto del mouse
'Button � il numero del pulsante
'Shift � se � premuto il tasto shift durante il click
'x e y sono le coordinate del mouse nel momento del click
Dim Frase As String
Frase = "il tasto premuto � il numero " & Button & vbCrLf
Frase = Frase & "il stato Shift " & IIf(Shift <> 0, "� stato premuto", "non
� stato premuto") & vbCrLf
Frase = Frase & "le coordinate sono " & X & ":" & Y
MsgBox Frase
'Me.MouseIcon = LoadPicture("Percorso dell'immagine da visualizzare")
'Me.MousePointer = costante '(cambia la modalit� del cursore)
End Sub

Copia ed incolla su un form, ti consiglio di copiare una sub per volta per
poi cancellarla e controllare un'altra, altrimenti i messaggi ti arrivano ad
ogni movimento e diventi matto :D

Cerberus
www.cerberus.htmx.it
Technical Details
Message-ID: <45278ed8$0$995$5fc30a8@news.tiscali.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed2.ip.tiscali.net!tiscali!newsfeed1.ip.tiscali.net!draco.tiscalinet.it!news-f1.tiscali.it!not-for-mail
References: <451adbb6.10924531@news.libero.it> <45266933$0$25890$4fafbaef@reader1.news.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,6ae658eec3e245d8
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed2.ip.tiscali.net!tiscali!newsfeed1.ip.tiscali.net!draco.tiscalinet.it!news-f1.tiscali.it!not-for-mail
From: "Cerberus" <Cerberus1981@NOSPAM.tiscali.it>
Newsgroups: free.it.visual-basic
References: <451adbb6.10924531@news.libero.it> <45266933$0$25890$4fafbaef@reader1.news.tin.it>
Subject: Re: mouse ocx
Date: Sat, 7 Oct 2006 13:26:14 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Lines: 68
Message-ID: <45278ed8$0$995$5fc30a8@news.tiscali.it>
Organization: Tiscali SpA
NNTP-Posting-Host: 84.222.132.48
X-Trace: 1160220377 news.tiscali.it 995 84.222.132.48:3322
X-Complaints-To: abuse@tiscali.it