Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1.  
  2. ForegroundColor = IIf( MouseOver, _
  3. RGB(33, 150, 243), _
  4. RGB(0,0,29) )
  5. MousePos = Application.GetMouseX()
  6.  
  7. If MouseOver Then
  8. If MousePos < 1920 Then
  9. OpenSubMenu ""
  10. Else
  11. OpenSubMenu "2"
  12. End If
  13. End If
  14.  
  15. End Sub
  16.  
  17. Function ToPixel( hm )
  18. ToPixel = IIf(IsNumeric( hm ), (hm * 96) / 2540, 0)
  19. End Function
  20.  
  21. Sub OpenSubMenu( monitor )
  22.  
  23. Set frmSubMenu = Application.GetFrame("MenuPrinc")
  24. Set scrSubMenu = Application.GetScreen("popups.pupMenuPrinc")
  25. frmSubMenu.MoveFrame ToPixel(X) , ToPixel(Y + Height + 50), ToPixel(Width) , scrSubMenu.Height & "hm"
  26. frmSubMenu.SetFrameOptions "", 256
  27. frmSubMenu.OpenScreen "popups.pupMenuPrinc", "Area" & monitor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement