D devmobile Active Member Licensed User Dec 5, 2017 #1 I have view that i need copy from it I use Dim im as ImageView im = imgicon But when i change im variable,it apply on main imageview
I have view that i need copy from it I use Dim im as ImageView im = imgicon But when i change im variable,it apply on main imageview
DonManfred Expert Licensed User Longtime User Dec 5, 2017 #2 im is a reference to imgicon. If you change im, imgicon is change too. For sure. Upvote 0
D devmobile Active Member Licensed User Dec 5, 2017 #3 DonManfred said: im is a reference to imgicon. If you change im, imgicon is change too. For sure. Click to expand... Yes i know How do i can copy from view without reference? Upvote 0
DonManfred said: im is a reference to imgicon. If you change im, imgicon is change too. For sure. Click to expand... Yes i know How do i can copy from view without reference?
Emme Developer Well-Known Member Licensed User Longtime User Dec 5, 2017 #4 devmobile said: Yes i know How do i can copy from view without reference? Click to expand... You cannot make a copy of the view itself. You can make another view with same layout and setting. Code: Dim im as ImageView '..... Dim im2 as ImageView dim p as panel = im.parent p.addview(im2,im.left,im.top,im.width,im.height) im2.gravity = im.gravity im2.bitmap = im.bitmap Upvote 0
devmobile said: Yes i know How do i can copy from view without reference? Click to expand... You cannot make a copy of the view itself. You can make another view with same layout and setting. Code: Dim im as ImageView '..... Dim im2 as ImageView dim p as panel = im.parent p.addview(im2,im.left,im.top,im.width,im.height) im2.gravity = im.gravity im2.bitmap = im.bitmap
D devmobile Active Member Licensed User Dec 5, 2017 #5 Emme Developer said: You cannot make a copy of the view itself. You can make another view with same layout and setting. Code: Dim im as ImageView '..... Dim im2 as ImageView dim p as panel = im.parent p.addview(im2,im.left,im.top,im.width,im.height) im2.gravity = im.gravity im2.bitmap = im.bitmap Click to expand... Yes it is good solution Thanks Upvote 0
Emme Developer said: You cannot make a copy of the view itself. You can make another view with same layout and setting. Code: Dim im as ImageView '..... Dim im2 as ImageView dim p as panel = im.parent p.addview(im2,im.left,im.top,im.width,im.height) im2.gravity = im.gravity im2.bitmap = im.bitmap Click to expand... Yes it is good solution Thanks