Here is the code for the Frame Properties:
- Code: Select all
'Clear hotspots for this frame
Component("KeyGuard").Object.ClearHotSpots
'Hotspot definitions for buttons
Component("KeyGuard").Object.DefineHotSpot 0,0,640,62,1,0
Component("KeyGuard").Object.DefineHotSpot 206,125,230,50,11,0
Component("KeyGuard").Object.DefineHotSpot 206,185,230,50,13,0
Component("KeyGuard").Object.DefineHotSpot 206,245,230,50,15,0
Component("KeyGuard").Object.DefineHotSpot 206,305,230,50,17,0
'Hotspot definition for main image
Component("KeyGuard").Object.DefineHotSpot 0,0,640,62,2,0
Component("KeyGuard").Object.DefineHotSpot 206,125,230,50,12,0
Component("KeyGuard").Object.DefineHotSpot 206,185,230,50,14,0
Component("KeyGuard").Object.DefineHotSpot 206,245,230,50,16,0
Component("KeyGuard").Object.DefineHotSpot 206,305,230,50,18,0
and here is the code for VBS Procedures
- Code: Select all
Sub KeyGuard_MouseEntersHotSpot(HotspotTAG)
'MsgBox "Mouse enters hotspot area: " & HotspotTAG(0
If Action.GetCurrentFrameName = "1. Main" Then
If HotSpotTag(0) = 1 Then Action.LoadAPicture Hotspot(2), "interface 3.gif"
End If
If Action.GetCurrentFrameName = "1. Main" Then
If HotSpotTag(0) = 12 Then Action.LoadAPicture Hotspot(11), "aq help manual hs.jpg"
End If
If Action.GetCurrentFrameName = "1. Main" Then
If HotSpotTag(0) = 14 Then Action.LoadAPicture Hotspot(13), "aq help progress hs.jpg"
End If
If Action.GetCurrentFrameName = "1. Main" Then
If HotSpotTag(0) = 16 Then Action.LoadAPicture Hotspot(15), "aq help credits hs.jpg"
End If
If Action.GetCurrentFrameName = "1. Main" Then
If HotSpotTag(0) = 18 Then Action.LoadAPicture Hotspot(17), "aq help return.jpg"
End If
Sub KeyGuard_MouseLeavesHotSpot(HotspotTAG)
'MsgBox "Mouse leaves hotspot area: " & HotspotTAG(0
If Action.GetCurrentFrameName = "1. Main" Then
Action.LoadAPicture Hotspot(2), ""
End If
If Action.GetCurrentFrameName = "1. Main" Then
Action.LoadAPicture Hotspot(11), ""
End If
If Action.GetCurrentFrameName = "1. Main" Then
Action.LoadAPicture Hotspot(13), ""
End If
If Action.GetCurrentFrameName = "1. Main" Then
Action.LoadAPicture Hotspot(15), ""
End If
If Action.GetCurrentFrameName = "1. Main" Then
Action.LoadAPicture Hotspot(17), ""
End If
Any thoughts?