elitevenkat Active Member Licensed User Longtime User Jun 6, 2018 #1 hi B4X: for i=0 to .... Dim p As Panel p.Initialize("LL") p.LoadLayout("selectispre") ' now i want to set different colour to this layout . . . cv.add(p,25%t,"kk") how to set different colours (background) layout layout ?
hi B4X: for i=0 to .... Dim p As Panel p.Initialize("LL") p.LoadLayout("selectispre") ' now i want to set different colour to this layout . . . cv.add(p,25%t,"kk") how to set different colours (background) layout layout ?
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2018 #2 elitevenkat said: Dim p As Panel p.Initialize("LL") p.LoadLayout("selectispre") Click to expand... This code is wrong. You should set the panel size before you load a layout. B4X: p.SetLayoutAnimated(0, 0, 0, 200dip, 200dip) p.LoadLayout(...) elitevenkat said: how to set different colours (background) layout layout ? Click to expand... B4X: p.Color = Colors.Red Upvote 0
elitevenkat said: Dim p As Panel p.Initialize("LL") p.LoadLayout("selectispre") Click to expand... This code is wrong. You should set the panel size before you load a layout. B4X: p.SetLayoutAnimated(0, 0, 0, 200dip, 200dip) p.LoadLayout(...) elitevenkat said: how to set different colours (background) layout layout ? Click to expand... B4X: p.Color = Colors.Red
elitevenkat Active Member Licensed User Longtime User Jun 6, 2018 #3 Thank you Erel. You have not only gave a solution for my query but also highlighted the wrong coding. Thanks Upvote 0
Thank you Erel. You have not only gave a solution for my query but also highlighted the wrong coding. Thanks