Nevermind, I should have looked harder.
http://docs.coronalabs.com/api/type/ScrollViewWidget/takeFocus.html [import]uid: 46082 topic_id: 36211 reply_id: 145079[/import]
You’re looking at the docs for the stable build (i.e., Widget 1.0). AFAIK, :takeFocus() has not been implemented in Widgets 2 yet. As such, I’m still using the 1.0 library (as describe in the Migration guide). [import]uid: 31041 topic_id: 36211 reply_id: 145088[/import]
Is takeFocus method has been implemented or not yet?
I have three Apps which relay on takeFocus method… please keep us updated [import]uid: 147340 topic_id: 36211 reply_id: 145646[/import]
the new forum is horible… same posts 2 and 3 times… Good work guys!!
Any update on this? I looked through the daily build notes and didn’t see anything regarding “takeFocus” [import]uid: 46082 topic_id: 36211 reply_id: 145077[/import]
Nevermind, I should have looked harder.
http://docs.coronalabs.com/api/type/ScrollViewWidget/takeFocus.html [import]uid: 46082 topic_id: 36211 reply_id: 145079[/import]
You’re looking at the docs for the stable build (i.e., Widget 1.0). AFAIK, :takeFocus() has not been implemented in Widgets 2 yet. As such, I’m still using the 1.0 library (as describe in the Migration guide). [import]uid: 31041 topic_id: 36211 reply_id: 145088[/import]
Is takeFocus method has been implemented or not yet?
I have three Apps which relay on takeFocus method… please keep us updated [import]uid: 147340 topic_id: 36211 reply_id: 145646[/import]
the new forum is horible… same posts 2 and 3 times… Good work guys!!
Was this ever added? I am having the same issue. I see no documentation about takeFocus. I do see some work arounds on other posts but cannot get them to work.
I keep checking, it hasn’t. Somewhat frustrating to see a new library released missing important functionality from the old one. I’m still using Widgets 1.0 for this reason.
We are working on a way to make this more built in, as opposed to the hack which was takeFocus.
For now, if you return false in the moved phase of your touch handler, in the object’s listener (that you inserted into the scrollView) you can achieve a similar effect to takeFocus.
Thanks Danny. I used the return false method but my button widgets stay on the overFile state. However the scrolling does work. Do you guys have any idea of a time frame on the solution you mentioned? I don’t mean to push, I know you guys are busy with a million requests.
Thanks again for your help.
Any chance this is going to be added before the daily builds stop for the next public release? It is very hard to make a scrollview full of buttons right now.
any news about takeFocus behavior in scrollView 2.0?. It a essential feature for corona user. Thank you.
Agree - also see my other thread on this for a temp solution from Danny. Would be a very welcome addition if this was all built in though.
Thanks!
Ian
Was this ever added? I am having the same issue. I see no documentation about takeFocus. I do see some work arounds on other posts but cannot get them to work.
Furthermore the scrollBarColor does not work and the scrollBar does not move properly. Widgets 2.0 are giving me headaches instead of solutions . I am using version 2013.1075.
scrollView = widget.newScrollView { width = 420, height = 230, scrollWidth = 0, scrollHeight = images.height, hideBackground = true, maskFile= "imagenes/maskExtras.png", scrollBarColor = { 255,255,255,100}, horizontalScrollDisabled = true }
scrollBarColor was depreciated. The scrollbar is now constructed via 3 images from an imageSheet.
Please see the migration guide: http://docs.coronalabs.com/daily/api/ (under the widget section)