Android Question B4X SwiftButton

davemorris

Active Member
Licensed User
Longtime User
Hi Guys
I appear to have a problem with the Swiftbutton - you can't access the visible property from code. However, it is present (and works) In Designer - any suggestions?

Also appears to have the same problem with text property.

Regards
Dave
 
Last edited:

davemorris

Active Member
Licensed User
Longtime User
Hi mangojack
Thanks for the response, I will give it a try (sure it will work).

I do believe these properties should be exposed to caller (i.e. swiftbutton.visible) in the normal manner, as it currently means you have to modify you code when you start using these buttons.

What do you think?

Regards
Dave
 
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
HI Erel

I take you point - But from my point of view, a custom class inherit's the base class (sorry to bring OPPs into it) and therefore the user is ideally only concerned with the new class not the class it is derived from - so I am not so sure it is a good convention.

I intend to read your B4X booklet on Custom Views and perhaps I will change my opinion.

Kind regards
Dave
 
Last edited:
Upvote 0
Top