Payal77
October 5th, 2001, 12:43 PM
I was looking for an API function by which I would get the location of the System Clock within the System Tray. Or for that matter, the position of any icon within the System Tray. Even if there is a way to get the System Tray's position itself, it might help. I can get the work area's width and height by the following code:
private Sub Command1_Click()
With SysInfo1
print "WorkAreaLeft: " & .WorkAreaLeft / Screen.TwipsPerPixelX
print "WorkAreaTop: " & .WorkAreaTop / Screen.TwipsPerPixelY
print "WorkAreaWidth: " & .WorkAreaWidth / Screen.TwipsPerPixelX
print "WorkAreaHeight: " & .WorkAreaHeight / Screen.TwipsPerPixelY
print "ScreenHeight: " & Screen.Height / Screen.TwipsPerPixelY
print "ScreenWidth: " & Screen.Width / Screen.TwipsPerPixelX
End With
End Sub
Any help would greatly be appreciated. Thanks in advance.
private Sub Command1_Click()
With SysInfo1
print "WorkAreaLeft: " & .WorkAreaLeft / Screen.TwipsPerPixelX
print "WorkAreaTop: " & .WorkAreaTop / Screen.TwipsPerPixelY
print "WorkAreaWidth: " & .WorkAreaWidth / Screen.TwipsPerPixelX
print "WorkAreaHeight: " & .WorkAreaHeight / Screen.TwipsPerPixelY
print "ScreenHeight: " & Screen.Height / Screen.TwipsPerPixelY
print "ScreenWidth: " & Screen.Width / Screen.TwipsPerPixelX
End With
End Sub
Any help would greatly be appreciated. Thanks in advance.