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.
 

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

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!

If i now click on the black i select the activity

If i NOW paste the copied object

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

after you paste the object now

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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…