LucaMs Expert Licensed User Longtime User Sep 30, 2020 #1 I have a B4A routine that originally worked on a B4A ImageView; now I want to "convert" it to B4X. When possible, from Designer I generate all members as B4XView. If I do this even for ImageViews, my routine works (*) but also the B4XImageView type exists. Furthermore, ImageView exists both in B4A and B4J (perhaps in B4i too), so I'm a little bit... lost! In general, how to choose, how to proceed? (*) My routine uses: iv.Parent, iv.Left, iv.Top, iv.Width, iv.Height iv is passed as a parameter (originally as B4A ImageView); B4XImageView doesn't have these properties, ImageView and B4XView do. EDIT: Only now I have read this thread: [B4X] B4XImageView - ImageView + resize modes I think the solution would be to add those properties to this new custom view Last edited: Sep 30, 2020
I have a B4A routine that originally worked on a B4A ImageView; now I want to "convert" it to B4X. When possible, from Designer I generate all members as B4XView. If I do this even for ImageViews, my routine works (*) but also the B4XImageView type exists. Furthermore, ImageView exists both in B4A and B4J (perhaps in B4i too), so I'm a little bit... lost! In general, how to choose, how to proceed? (*) My routine uses: iv.Parent, iv.Left, iv.Top, iv.Width, iv.Height iv is passed as a parameter (originally as B4A ImageView); B4XImageView doesn't have these properties, ImageView and B4XView do. EDIT: Only now I have read this thread: [B4X] B4XImageView - ImageView + resize modes I think the solution would be to add those properties to this new custom view
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2020 #2 LucaMs said: I think the solution would be to add those properties to this new custom view Click to expand... These properties are accessible in all custom views through the mBase field. Upvote 0
LucaMs said: I think the solution would be to add those properties to this new custom view Click to expand... These properties are accessible in all custom views through the mBase field.