Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bhushan Sahni
  Where is Bhushan Sahni?
 Jabalpur/Mumbai
 India
 Bhushan Sahni
 To: Ray Tawil
  Where is Ray Tawil?
 Oregon
 Ohio - United States
 Ray Tawil
 Tags
Subject: RE: Changing images through event
Thread ID: 209566 Message ID: 209569 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Monday, December 29, 2008 4:55:52 PM         
   


> Hello community,
>
> i have an image control i want on the
>
> "Mouse enter" event make the image1 change to image2 & on the
> "Mouse leave" event reset the image back to image1
>
> the problem is whenever i place the mouse over the image the other image starts flikering very fast.
> i thought of adding a timer or somthing like that but it doesnt seem to work so far... here's the syntax:
>
> mouse enter:
> 
> LPARAMETERS nButton, nShift, nXCoord, nYCoord
> thisform.Themedtitlepageframe.themedtitlepage1.userControls.timer1.Enabled = .T. 
> thisform.Themedtitlepageframe.themedtitlepage1.userControls.image1.Visible = .F.
> thisform.Themedtitlepageframe.themedtitlepage1.userControls.image7.Visible = .T.
> 
> mouse leave:
> 
> LPARAMETERS nButton, nShift, nXCoord, nYCoord
> thisform.Themedtitlepageframe.themedtitlepage1.userControls.timer1.Enabled = .T. 
> thisform.Themedtitlepageframe.themedtitlepage1.userControls.image1.Visible = .F.
> thisform.Themedtitlepageframe.themedtitlepage1.userControls.image7.Visible = .T.
> 


Hi,
check the condition for the image1 or image7 visible=.t. or viseversa. It will solve the problem

 mouse enter:
 
 LPARAMETERS nButton, nShift, nXCoord, nYCoord

 if !thisform.Themedtitlepageframe.themedtitlepage1.userControls.image7.Visible

 thisform.Themedtitlepageframe.themedtitlepage1.userControls.timer1.Enabled = .T. 
 thisform.Themedtitlepageframe.themedtitlepage1.userControls.image1.Visible = .F.
 thisform.Themedtitlepageframe.themedtitlepage1.userControls.image7.Visible = .T.

 endif
 
 mouse leave:
 
 LPARAMETERS nButton, nShift, nXCoord, nYCoord

 if !thisform.Themedtitlepageframe.themedtitlepage1.userControls.image7.Visible 

 thisform.Themedtitlepageframe.themedtitlepage1.userControls.timer1.Enabled = .T. 
 thisform.Themedtitlepageframe.themedtitlepage1.userControls.image1.Visible = .F.
 thisform.Themedtitlepageframe.themedtitlepage1.userControls.image7.Visible = .T.

 endif
 



Regards
Bhushan Sahni
Millenium Softwares
bhushan_sahni@yahoo.com

Visual Foxpro a dream house for developers

ENTIRE THREAD

Changing images through event Posted by Rabih Tawil @ 12/29/2008 4:46:42 PM
RE: Changing images through event Posted by Bhushan Sahni @ 12/29/2008 4:55:52 PM
RE: Changing images through event Posted by Rabih Tawil @ 12/29/2008 5:06:40 PM
RE: Changing images through event Posted by Yousfi Benameur @ 12/29/2008 10:50:43 PM
RE: Changing images through event Posted by Rabih Tawil @ 12/30/2008 8:32:00 AM
RE: Changing images through event Posted by Bernard Bout @ 12/29/2008 6:09:36 PM