A Ahmadi New Member Aug 16, 2021 #1 Hello Eral How to add a image to a swiftbutton? in part of "Designer / swiftbotton propertise / base background" I enter the image but it does not display the image after compile
Hello Eral How to add a image to a swiftbutton? in part of "Designer / swiftbotton propertise / base background" I enter the image but it does not display the image after compile
M Mahares Expert Licensed User Longtime User Aug 16, 2021 #2 Ahmadi said: I enter the image but it does not display the image after compile Click to expand... You can use the CSBuilder code in this link, by asales or oparra. Then for the swiftbutton text you can use: B4X: SwiftButton1.xLBL.Text= cs How to add image to button with text ? Hello everyone how can i add image with text to the button like this ? www.b4x.com I know you are new, but don't address your question to one person to help you. Many others are willing too. Upvote 0
Ahmadi said: I enter the image but it does not display the image after compile Click to expand... You can use the CSBuilder code in this link, by asales or oparra. Then for the swiftbutton text you can use: B4X: SwiftButton1.xLBL.Text= cs How to add image to button with text ? Hello everyone how can i add image with text to the button like this ? www.b4x.com I know you are new, but don't address your question to one person to help you. Many others are willing too.
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2021 #3 Tip: cross platform (B4A + B4i) way to set CSBuilder to a Label or other view that supports it: B4X: XUIViewsUtils.SetTextOrCSBuilderToLabel(SwiftButton1.xLBL, cs) Upvote 0
Tip: cross platform (B4A + B4i) way to set CSBuilder to a Label or other view that supports it: B4X: XUIViewsUtils.SetTextOrCSBuilderToLabel(SwiftButton1.xLBL, cs)