iOS Question Set Image BitMap In a Panel as B4XView - B4i

developer_123

Active Member
Licensed User
Longtime User
Hello!

At this moment I need set a BitMap In a Panel declared as B4XView in B4I .
Like in B4A and B4J this is possible using the properties inside the Designer, I don't know which are the correct metod to do this in B4I. I was trying some things from some threads, but get troubles, for this reason I appreciate any support with that! One more thing, the same but with the buttons. Thanks in Advance!
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You cannot set a bitmap to a panel in B4i.

1641882776049.png


2 options:
B4X:
Dim iv As B4XImageView = XUIViewsUtils.CreateB4XImageView
iv.Bitmap = ...

B4X:
Dim iv As ImageView
iv.Initialize("")
Dim xiv As B4XView = iv
xiv.SetBitmap(...)
 
Upvote 0

developer_123

Active Member
Licensed User
Longtime User
You cannot set a bitmap to a panel in B4i.

View attachment 124056

2 options:
B4X:
Dim iv As B4XImageView = XUIViewsUtils.CreateB4XImageView
iv.Bitmap = ...

B4X:
Dim iv As ImageView
iv.Initialize("")
Dim xiv As B4XView = iv
xiv.SetBitmap(...)
Erel , thanks for your response.
I don't know if I got a little confused. I understand then that xiv is the panel, and how it is not possible to configure a bitmap to the panel, we are going to grant it using a b4ximageview. truth? .

Trying to test both options set a bitmap in iv.bitmap, or xiv.SetBitmap but appear the next error: Type does not match (B4IPanelView).

I think I may not have clearly understood your explanation of how to set in this case the bitmaps. I would appreciate if it were possible an example to validate if I'm wrong setting the bitmaps.
 
Upvote 0
Top