Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Declare Function GetCursorPos Lib "user32" _
(lpPoint As POINTAPI) As Long
'***********************
'THESE TWO FUNCTIONS RETURN THE POSITION ON THE SCREEN
'IN PIXELS, OF THE CURSOR
'EXAMPLE USAGE:
'Private Sub Form_MouseMove(Button As Integer, _
'Shift As Integer, X As Single, Y As Single)
' Label1.Caption = "X Screen Position = " & GetXCursorPos
' Label2.Caption = "Y Screen Position = " & GetYCursorPos
'End Sub
'***********************************
Public Function GetXCursorPos() As Long
Dim pt As POINTAPI
GetCursorPos pt
GetXCursorPos = pt.X
End Function
Public Function GetYCursorPos() As Long
Dim pt As POINTAPI
GetCursorPos pt
GetYCursorPos = pt.Y
End Function
Private Sub UnitPrice_Click()
DoCmd.Close acForm, "LastPP"
If GetXCursorPos < 1900 Then
DoCmd.OpenForm "LastPP"
'MsgBox (Me.ProductID)
If GetYCursorPos < 300 Then
DoCmd.MoveSize GetXCursorPos * 15.1, GetYCursorPos * 8.5, 4000, 200
End If
If GetYCursorPos > 300 And GetYCursorPos < 500 Then
DoCmd.MoveSize GetXCursorPos * 15.1, GetYCursorPos * 11.5, 4000, 200
End If
If GetYCursorPos > 500 Then
DoCmd.MoveSize GetXCursorPos * 15.1, GetYCursorPos * 13, 4000, 200
End If
Else
MsgBox ("You can not use a second screen here")
End If
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.