A anuj0sharma Member Licensed User Longtime User Apr 13, 2011 #1 Hi..a simple question. I have a panel in an activity..in this panel i m loading 5-6 layouts one by one. in all the layouts there has to be a button which is doing same things in all the cases..how to have one button in all the layouts.? i know having a button independent of layouts can be added directly to activity everytime.. looking for solutions apart from this. regards,
Hi..a simple question. I have a panel in an activity..in this panel i m loading 5-6 layouts one by one. in all the layouts there has to be a button which is doing same things in all the cases..how to have one button in all the layouts.? i know having a button independent of layouts can be added directly to activity everytime.. looking for solutions apart from this. regards,
K kickaha Well-Known Member Licensed User Longtime User Apr 13, 2011 #2 What you could do is set the EventName (in designer) to be the same for all of them - that way they will use the same code. Upvote 0
What you could do is set the EventName (in designer) to be the same for all of them - that way they will use the same code.
A anuj0sharma Member Licensed User Longtime User Apr 13, 2011 #3 kickaha said: What you could do is set the EventName (in designer) to be the same for all of them - that way they will use the same code. Click to expand... thanks..thats what i m doing sir..but still i've to have a button view in all the layouts..i was asking to have same button view shared across all the layouts.. Upvote 0
kickaha said: What you could do is set the EventName (in designer) to be the same for all of them - that way they will use the same code. Click to expand... thanks..thats what i m doing sir..but still i've to have a button view in all the layouts..i was asking to have same button view shared across all the layouts..
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2011 #4 You can move views between panels by code. First call Button.RemoveView and then add it by calling Panel.AddView(...). Upvote 0
You can move views between panels by code. First call Button.RemoveView and then add it by calling Panel.AddView(...).