Jhonn Member Mar 24, 2017 #1 Hello, how to access to events for panel scrollview create with designer??? Add a ScrollView with the designer and the code access ScrollView1.Panel and events for internal panel of ScrollView1???
Hello, how to access to events for panel scrollview create with designer??? Add a ScrollView with the designer and the code access ScrollView1.Panel and events for internal panel of ScrollView1???
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2017 #2 The inner panel will not raise any event. Create a layout and add a panel anchored to all sides. Load this layout to the inner panel and handle its events. Upvote 0
The inner panel will not raise any event. Create a layout and add a panel anchored to all sides. Load this layout to the inner panel and handle its events.
Jhonn Member Mar 24, 2017 #3 When create a layout for the panel and load with ScrollView1.Panel.LoadLayout (this layout create with designer contains Panel1 view), and B4X: Log(ScrollView1.Panel.NumberOfViews) returns 1. Panel contains another Panel1, then what Panel works in app? and try this B4X: ScrollView1.Panel = Panel1 but IDE logs "Propety is readonly" Zorry my traslate, but im spanish, thanks Last edited: Mar 24, 2017 Upvote 0
When create a layout for the panel and load with ScrollView1.Panel.LoadLayout (this layout create with designer contains Panel1 view), and B4X: Log(ScrollView1.Panel.NumberOfViews) returns 1. Panel contains another Panel1, then what Panel works in app? and try this B4X: ScrollView1.Panel = Panel1 but IDE logs "Propety is readonly" Zorry my traslate, but im spanish, thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 26, 2017 #4 B4X: ScrollView1.Panel.LoadLayout("LayoutForScrollView") Upvote 0
Jhonn Member Mar 27, 2017 #5 why dont internal scrollview panel raise any envents??? I created a PanelLayout with designer and contains a only label, and add news labels copy properties form label created desing ScrollView1.Panel.AddView() dynamical, but i see other ways to do it, check this code... https://www.b4x.com/android/forum/t...-posterior-modificación-mediante-códig.77752/ is correct this way?? Upvote 0
why dont internal scrollview panel raise any envents??? I created a PanelLayout with designer and contains a only label, and add news labels copy properties form label created desing ScrollView1.Panel.AddView() dynamical, but i see other ways to do it, check this code... https://www.b4x.com/android/forum/t...-posterior-modificación-mediante-códig.77752/ is correct this way??
Erel B4X founder Staff member Licensed User Longtime User Mar 28, 2017 #6 Jhonn said: why dont internal scrollview panel raise any envents??? Click to expand... This is how it is designed. Load a layout with a panel anchored to all sides and handle its events. Upvote 0
Jhonn said: why dont internal scrollview panel raise any envents??? Click to expand... This is how it is designed. Load a layout with a panel anchored to all sides and handle its events.