Wish B4A Designer Keep Parent when copying a View

rwblinn

Well-Known Member
Licensed User
Longtime User
B4A Designer:
When coping a view which has a parent different then Activity, the default is set to Activity instead of the assigned parent of the view copied.

Wish: Keep the same parent assigned when copying a view.
 

DonManfred

Expert
Licensed User
Longtime User
designer0006.png


designer0007.png


designer0008.png


It´s working like i Expected

2nd try (Copy and Paste)
designer0009.png

designer0010.png


designer0011.png


This is working as expected too
 
Last edited:

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi Manfred,

Yes it works when using Duplicate Selected View, but when you use Copy and Paste it behaves like I described.
It is good to know to use Duplicate Selected Views instead.

Thanks for swift response = Appreciated,
Rob
 

DonManfred

Expert
Licensed User
Longtime User
in my screens i showed up the contentmenu-entries... BUT i really used STRG-C to copy the selected control. Then marked the panel where i want to insert and used ctrl-v.
i´ll make a 3rd run using the contentmenuentries... hold on
designer0012.png

this works as expected too

What version of B4A do you use?
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
BTW: Be careful which object is the "active one" when pasting back the copied object!
designer0013.png

If i now click on the black i select the activity
designer0014.png

If i NOW paste the copied object
designer0015.png

the parent ob this object will become Activity and not the panel it came from. This is the expected behaviour

Make sure that you select the right "destination" (the panel) before pasting the object
designer0016.png

after you paste the object now
designer0017.png

It will become a member ob the marked panel
 

klaus

Expert
Licensed User
Longtime User
Yes it works when using Duplicate Selected View, but when you use Copy and Paste it behaves like I described.
This is wrong.
Select a view and click on Copy.
Select a Panel and click on Paste, the view will be copied to the selected Panel and not to the Activity !
The parent view where the view is pasted depends on the cursor position where you paste.
If you have a Label on a Panel, select the Label, right click on the Label to show the popup menu and click on Copy, position the cursor on the Panel, right click and then click on Copy.
The Label will be duplicated on the Panel.
 
Last edited:
Top