I have a class that contains a Button among other things. When I Initialize a new instance of the class it Initializes the Button and sets a shared Event handler. Problem is that it does not recognize any click events on the button.
If I Initialize the Button separately somewhere in the Activity (vs in the Class) then the click events are recognized.
I'm new to classes so it is probably something fundamental.
How do I make the Event_Handler visible to the Activity when it is Initialized within the class. I can work around it but it's not nearly as clean.
Any help appreciated for a B4A newbie.
If I Initialize the Button separately somewhere in the Activity (vs in the Class) then the click events are recognized.
I'm new to classes so it is probably something fundamental.
How do I make the Event_Handler visible to the Activity when it is Initialized within the class. I can work around it but it's not nearly as clean.
Any help appreciated for a B4A newbie.