Custom User Control

kormos

Member
Licensed User
Longtime User
Is there something in B4A like a user control in vb. I am going to create a custom picture gallery and I would like to make it to act as a control so that it will be easy to use it again in the future. Is it possible to make it in B4A?
 

kormos

Member
Licensed User
Longtime User
This is not what I was expected. I guessed that there will be able to create an object with events and properties and we will be able to create an instance of the control and use it like the other controls in B4A (Button, ListView, ...).
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
You can do that if you create a custom View as a B4A library.

It will have whatever methods and properties you define/declare and behave like a normal object with a constructor etc.

Martin.
 
Upvote 0

kormos

Member
Licensed User
Longtime User
I know it but I do not want to leave the B4A environment. The two examples that Erel told me to check, use functions just to handle a group of information and display them on the screen. It is not like a user control but it is a solution for my problem. I will try to use this logic in order to develop my “control”. Thanks for your replies.
 
Upvote 0

CharlesIPTI

Active Member
Licensed User
Longtime User
You can do that if you create a custom View as a B4A library.

It will have whatever methods and properties you define/declare and behave like a normal object with a constructor etc.

Martin.

a library like from Java not a visual studio already dll'd up user control,,,
but re create it in
Java then do the xml thing to create a library for B4a...

sounds like quite a bit of work for one user control.
Especially when I have dozens of them.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…