Dec 8, 2020 Replies: 3 Hi all This is a mod of the B4XSwitch class in the XUIViews library. I wanted a smaller switch than the default one, and got it by modifying a bit the code. There's a new property called 'Size', with 5 possible values: XS, S, M, L and XL. Default value is M, the original size. Hope you find it useful Best regards Attachments B4XSwitch_AdjSize.bas B4XSwitch_AdjSize.bas 5.4 KB · Views: 804 Last edited: Dec 10, 2020 Click to expand...
Hi all This is a mod of the B4XSwitch class in the XUIViews library. I wanted a smaller switch than the default one, and got it by modifying a bit the code. There's a new property called 'Size', with 5 possible values: XS, S, M, L and XL. Default value is M, the original size. Hope you find it useful Best regards
Erel B4X founder Staff member Licensed User Longtime User Dec 9, 2020 #2 You should change the class name. 1. To make it clear that it is a derived work. 2. To allow developers to use it together with XUI Views library.
You should change the class name. 1. To make it clear that it is a derived work. 2. To allow developers to use it together with XUI Views library.
Ivan Aldaz Member Licensed User Longtime User Dec 10, 2020 #3 Sorry, this is the first time I share a class, and I was not aware of what you say. I have changed the name of the thread and have uploaded the same file also renamed
Sorry, this is the first time I share a class, and I was not aware of what you say. I have changed the name of the thread and have uploaded the same file also renamed
asales Expert Licensed User Longtime User Mar 24, 2021 #4 Very, very nice. Thanks. I need this because the original B4XSwitch, by default, has a large size and don't fit with the layout of my app.
Very, very nice. Thanks. I need this because the original B4XSwitch, by default, has a large size and don't fit with the layout of my app.