[codenameone-discussions] Re: best way to add a layer (example infiniteprogress) to any component

2017-08-11 Thread Shai Almog
The container now wraps the components so you need to do: Container cnt = LayeredLayout.encloseIn(con, progress); con.getParent().replace(con, cnt, null); Then to remove the infinite progress: con.remove(); cnt.getParent().replace(cnt,con, null); Notice the last argument can be a transition lik

[codenameone-discussions] Re: best way to add a layer (example infiniteprogress) to any component

2017-08-11 Thread Rocotoco Rodriguez
im doing that but the problem its that the function returns a container and not the original object type. can be possible to add the getLayeredPane functionality to the controls who derives from Container? think in that way, can be possible to add infiniteprogress to containers or labels ind

[codenameone-discussions] Re: best way to add a layer (example infiniteprogress) to any component

2017-08-10 Thread Shai Almog
Why not just use InfiniteProgress with the code you have above instead of the layer container? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codena

[codenameone-discussions] Re: best way to add a layer (example infiniteprogress) to any component

2017-08-10 Thread Rocotoco Rodriguez
No shai, just to the component. it can be usefull to add and infiniteprogress when a control is loading asyncronously ideas? regards and happy hollidays On Thursday, August 10, 2017 at 1:28:28 AM UTC-3, Shai Almog wrote: > > Hi, > there are lots of ways but I'm not sure I can comment on "bes

[codenameone-discussions] Re: best way to add a layer (example infiniteprogress) to any component

2017-08-09 Thread Shai Almog
Hi, there are lots of ways but I'm not sure I can comment on "best" as each has its uses. Are you adding an infinite progress to the entire form? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop