WebDev 18 - BrowserOpen / MouseOver Event

Startbeitrag von Paul Murray am 16.10.2013 20:38

Greetings all!!

I have a web page with a square cell on it. On top of the cell, I have a static text control.

I want the behavior to be such that when someone moves the mouse over the control it will change the cursor to a hand.

I think the code should be something like:

CELL_Cell4..MouseCursor = curSystemHand

I can access the code for the cell, but I only see a 'Clicked' event. I don't see 'MouseOver'. So I don't know where to put the code.

Also, I tried to add code to the static text, but I get a message stating, ''No code found in ."

If I could find a MouseOver Event to add code for this I think it would be:

STC_NoName_2..MouseCursor = curSystemHand

I have another issue. My client gave me some javascript code to open a window and I can't see to figure out how to do this in WL.

Here is the javascript code:

window.open('https://groundspan.com/standardpopupmain/login.aspx?acct=MICROSOFTWEB', null,'height=750,width=420,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no');

Can someone kindly tell me what this should look like in WL?

Thanks all for any help!!




Hi Paul

FYI, it's generally easier to ask ONe question per thread, but in that case, I should be able to answer both qestions...

1. At the bottom left of the code window, you have several icons allowing you to add events/code, and the mouseover is one of them...

2. Create a browser procedure, then at the top left of the code window, click on WL... It changes to JS and you can now paste your javascript code inside... You just have to call this browser procedure like if it was written in wlanguage

Best regards

von Fabrice Harari - am 16.10.2013 20:47
Thanks Fabrice!!

You are right. Only one topic per thread!

I feel kind of silly because I found a cursor setting for on the GUI tab that allowed me to simply select the 'Hand' from the drop down list. Works fine.

Beyond that I did 'see' in the lower left corner an icon representing the clicked event for the cell. Clicking on it invited me to wipe out the code I had. Right clicking on it did nothing. I did not see any place to select code for MouseOver or RollOver events. Maybe cells and static controls cannot have these events?

Thanks much!!


von Paul Murray - am 16.10.2013 23:36

On my WB code screen the onmouseover event is the 2nd one in from the left - left clicking it should take you straight to the code for the event.

There are also the three "..."s to allow you to add/remove events.

von DarrenF - am 17.10.2013 07:49
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.