
Im attempting to load pictures within the same hotspot..using a select case..I'm using the select case for KeYID 105 for keyguard..Its the double click one..Anyways keeping that aside..My code for select case is wrong..

I am double clicking a small hotspot in attempt to load a bigger description of it..above it..I am trying to use the same hotspot to load all descriptions ..
So i you double click say the small picture of a can..Then a bigger picture of a can will load above it..If you double click another small picture...a bigger picture of that one will load in the same one as the last one..[The big picture of the can]..
Here is my code..
- Code: Select all
CurrentFrame=Action.GetCurrentFrameName
Select Case CurrentFrame
Case "Living Room_Revised"
Select Case KeyID(0)
Case 105
Hotspot(4).visible = True
Action.LoadAPicture Hotspot(20), "PictureBoxObject_Spraycan.bmp"
Hotspot(20).move 201*15,131*15,369*15,395*15
Action.LoadAPicture Hotspot(22), "CloseWindow.bmp"
Component("KeyGuard").Object.EnableHotSpot 22
Case 105
Hotspot(3).visible = True
Action.LoadAPicture Hotspot(20),"PictureBoxObject_tweezers.bmp"
Hotspot(20).move 201*15,131*15,369*15,395*15
Action.LoadAPicture Hotspot(22), "CloseWindow.bmp"
Component("KeyGuard").Object.EnableHotspot 22
End Select
End Select
End Sub
...It doens't matter which one i double click..im only getting the can one coming up..no matter which small picture I double click..
I was told i needed no variables..that hotspot.tag was the answer..Only i'm at a loss as to what to do now..

I have nothing in the advance tab nor do i have any variables..
I"ve also tried HOTSPOT(4).TAG = TRUE..
Also tried using If statement with the hotspot.tag or hotspot.visible...
Any ideas..?
THanks in advance for any help..