In events we have Sender to inform us of the origin of the event. A magical companion that never is present in sub signatures, but always available once you learn about its mysterious ways. Or so I thought at least. Seems Sleep can kill it. (I haven't verified this, but it seems likely to also be vulnerable to the violent ways of Wait For.)
This wish originates from this thread
My wish is something like this...
1. Make Sender available even after Sleep (and Wait For etc)
or
2. Make the IDE linter detect usage of Sender after Sleep and say something like "Warning: Sender is Null after Sleep and Wait For"
or
3. At the very least put the information in the hover-documentation for Sender and also in the forum when one searches for Sender:
This wish originates from this thread
Sender not set in WebView_LocationChanged event
I have a layout with several WebViews, each containing html with a link. Clicking a link triggers the LocationChanged event just fine. However, I can't figure out how to get which WebView the click happened in, as Sender is Null. Is this expected behaviour on B4J or have I misunderstood...
www.b4x.com
My wish is something like this...
1. Make Sender available even after Sleep (and Wait For etc)
or
2. Make the IDE linter detect usage of Sender after Sleep and say something like "Warning: Sender is Null after Sleep and Wait For"
or
3. At the very least put the information in the hover-documentation for Sender and also in the forum when one searches for Sender: