Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 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: 209605 # Views: 1 # Ratings: 1
Version: Visual FoxPro 9 Category: Forms
Date: Monday, December 29, 2008 10:50:43 PM         
   


> > 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
>
> same flickerish effect the image start appearing & disappearing so fast i need to create a small delay in between .....

hi Rabih
Image7.mousenter
***************
LPARAMETERS nButton, nShift, nXCoord, nYCoord
this.picture="myImage1.jpg"


Image7.mouseleave
***************
LPARAMETERS nButton, nShift, nXCoord, nYCoord
this.picture="myImage2.jpg"


no need anything another.MouseEnter and Mouseleave are created for this.
there is no flickers on image.
if you have actions you can add change mousepointers (this.mousepointer=15) in enter and in leave:(this.mousepointer=0)
regards

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