Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 9 Jahren, 8 Monaten
Letzter Beitrag:
vor 9 Jahren, 8 Monaten
Beteiligte Autoren:
kewpe20, Fabrice Harari, Al, Glenn Rathke

Display image onmouseover

Startbeitrag von kewpe20 am 21.10.2008 18:39

I would like the ability for the user to display an image if they hover their mouse over a link (Any component will do), but I'm doing something incorrectly.

1. I unchecked the Visible property of the Image in the Description of the Image.
2. I created a link.
3. In the Mouse Over code block I put the following code:
IMG_IMAGE_XX..Visible = True

If I move that code to the Click of Link code I can get the Image to appear, but I'd much rather that it occurs only on a mouse over.

Antworten:

Hello Kewpe20

Is any code being executed on mouse over ?
One way to make sure is to try an info("mouse is hovering") message to ensure that something is really happening.

You say that :
If I move that code to the Click of Link code I can get the Image to appear, but I'd much rather that it occurs only on a mouse over.

Can you use executeprocess() in the mouse over code to run that Link code ?

Regards
Al



von Al - am 21.10.2008 21:45
Hi,

Hi,

I tried duplicating what you described and sure enough I had the same problem. I inserted an info and sure enough it was displayed, but the hiding or moving the other control did not work. Perhaps the executeprocess that was suggested might do the trick.

Let us know
Glenn Rathke

von Glenn Rathke - am 22.10.2008 02:37
the ExecuteProcess() almost worked.
The problem this creates is it's as if the user is clicking the link thousands of times per second while the user has their mouse over the link. This causes the server to disconnect.

I put this in the On Click code but I realize now why it doesn't work. I only mention it because I thought it might give someone with more Webdev experience an idea on how to resolve this.


On Click Code
IMG_IMAGE_XX..Visible = True
BTDisableService(IMG_IMAGE_XX,trtClick)

Onmouseover Code
ExecuteProcess(BTN_Button1,trtClick)



von kewpe20 - am 22.10.2008 17:01
Hi...

What about testing if the image is visible before doing the executeprocess... This way, only one click would be done

In fact, if you test first, it's possible that making the image visible ONCE would work in the OnMouseOver code

best regards

Fabrice Harari
WinDev, WebDev, WinDev Mobile consulting


Quote
kewpe20
the ExecuteProcess() almost worked.
The problem this creates is it's as if the user is clicking the link thousands of times per second while the user has their mouse over the link. This causes the server to disconnect.

I put this in the On Click code but I realize now why it doesn't work. I only mention it because I thought it might give someone with more Webdev experience an idea on how to resolve this.


On Click Code
IMG_IMAGE_XX..Visible = True
BTDisableService(IMG_IMAGE_XX,trtClick)

Onmouseover Code
ExecuteProcess(BTN_Button1,trtClick)


von Fabrice Harari - am 22.10.2008 18:04
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.