[Info] Scrollview Take Focus Is Coming Back

ditto - thanks

Danny - Is there actually any other way (that isn’t way complicated) to get a horizontal scrolling section of widget buttons happening?  If so I’d like to hear about it.  For the moment I haven’t come across a way, so it seems “takeFocus()” is the only way and hence a really key thing to have.   

Any idea when this will be back?

try the last daybuild - worked for me

Thanks!  Will give it a try!

When is this coming back?  It didn’t work in the latest daily build.  This delay is preventing the completion of our app…

Hi borderleap,

This should work in 1092 and upwards.

If it does not, post some code please, so we can figure it out.

Thanks,

Alex

Yep - works good!  Thank you :slight_smile:

The documentation for takeFocus() should be available in our daily build docs in the next daily build.

I hadnt realised that i never pushed the documentation out there. Sorry for any inconvenience caused.

I’ve got 1094 and doesn’t work for me :frowning:
Any sintax change?

works for me

This worked fine for me with widget 1.0 

local function webListener(event) if event.phase == "moved" then local dx = math.abs( event.x - event.xStart ) local dy = math.abs( event.y - event.yStart ) -- if finger drags button more than 5 pixels, pass focus to scrollView if dx \> 5 or dy \> 5 then contenedor:takeFocus( event ) end elseif event.phase == "ended" then print( "toca webView" ) end return true end function establecemento:createScene( event ) local grupoEstablecemento = self.view local fondo = display.newRect(0,0,anchoVisible,altoVisible) fondo:setFillColor(255) contenedor = widget.newScrollView { width = anchoVisible, height = altoVisible, scrollWidth = anchoVisible, scrollHeight = 1600, bottomPadding = 150, hideBackground = true, hideScrollBar = true, horizontalScrollDisabled = true, } webView = native.newWebView( 10, 724, 1004, 400 ) webView:setReferencePoint(display.TopLeftReferencePoint) webView.x = anchoVisible/2 - webView.width/2 webView.y = 400 webView.hasBackground = false webView:request( "proba.html", system.DocumentsDirectory ) webView:addEventListener( "urlRequest", webListener ) grupoEstablecemento:insert(fondo) grupoEstablecemento:insert(contenedor) end

And the scroll doesn’t works right since widget 2.0 (stops the scroll when finger drags over the webview)

Maybe a problem with newWebView? 

Hello, Danny,

I’ve seen there is a new daily build (2013.1100). Please, where can I see the documentation for takeFocus()?

I need to solve the issue relating to the takeFocus asap.

Thanks.

http://docs.coronalabs.com/daily/api/type/ScrollViewWidget/takeFocus.html

Maybe a problem with the native library?
I’m getting an issue trying to insert a newWebView onto newScrollView: it works fine on simulator but not insert the newWebView into the scrollView in the iPad (runs fine in Android)

The documentation for takeFocus() should be available in our daily build docs in the next daily build.

I hadnt realised that i never pushed the documentation out there. Sorry for any inconvenience caused.

Hello, Danny,

I’ve seen there is a new daily build (2013.1100). Please, where can I see the documentation for takeFocus()?

I need to solve the issue relating to the takeFocus asap.

Thanks.

http://docs.coronalabs.com/daily/api/type/ScrollViewWidget/takeFocus.html

Can we get the takeFocus method for the tableView as well ?

I really need it :slight_smile:

Can we get the takeFocus method for the tableView as well ?

I really need it :slight_smile:

I also would really love to see takeFocus also on tableView!!! My life would be much easier, and memory handling for my apps also (I’m currently using scrollView as a replacement for tableView due to the lack of takeFocus)…

Tks!