Olaan Expert Licensed User Longtime User Aug 21, 2025 #1 I have tried to compare between SwiftButton and Button what something be different. Attachments TestButtonVsSwiftButton.zip TestButtonVsSwiftButton.zip 42.5 KB · Views: 236
Erel B4X founder Staff member Licensed User Longtime User Aug 21, 2025 #2 No bug here. This is how SwiftButton is implemented. You can access its internal label and modify it as needed: SwiftButton.xLBL. And you can change it with the designer. It will also work.
No bug here. This is how SwiftButton is implemented. You can access its internal label and modify it as needed: SwiftButton.xLBL. And you can change it with the designer. It will also work.
Sagenut Expert Licensed User Longtime User Aug 22, 2025 #3 @Theera Here is how to do in the way @Erel proposed (taking what you was doing in another your work) B4X: Copy Dim myFont As B4XFont myFont = xui.CreateFont(Typeface.LoadFromAssets("JSGiat-Bold.otf"),62) SwiftButton1.xLBL.Font = myFont SwiftButton1.xLBL.TextSize = 30 This is how to change Font and TextSize from code to the original SwiftButton. I understand that it's not intuitive, but if @Erel does not want to update the SwiftButton this is the way to go.
@Theera Here is how to do in the way @Erel proposed (taking what you was doing in another your work) B4X: Copy Dim myFont As B4XFont myFont = xui.CreateFont(Typeface.LoadFromAssets("JSGiat-Bold.otf"),62) SwiftButton1.xLBL.Font = myFont SwiftButton1.xLBL.TextSize = 30 This is how to change Font and TextSize from code to the original SwiftButton. I understand that it's not intuitive, but if @Erel does not want to update the SwiftButton this is the way to go.