moster67 Expert Licensed User Longtime User Mar 19, 2011 #1 I'd like to put a corner around a label programatically. Anyone who can show some sample-code to obtain that? Thanks.
I'd like to put a corner around a label programatically. Anyone who can show some sample-code to obtain that? Thanks.
moster67 Expert Licensed User Longtime User Mar 19, 2011 #2 never mind. I found it in the documentation. For those interested: ColorDrawable A drawable that has a solid color and can have round corners. Example: B4X: Dim cd As ColorDrawable cd.Initialze(Colors.Green, 5dip) Button1.Background = cd Erel: By the way, the above sample code from the documentation has a spelling error in this line: B4X: cd.Initialze(Colors.Green, 5dip) where Initialze should of course be Initialize Upvote 0
never mind. I found it in the documentation. For those interested: ColorDrawable A drawable that has a solid color and can have round corners. Example: B4X: Dim cd As ColorDrawable cd.Initialze(Colors.Green, 5dip) Button1.Background = cd Erel: By the way, the above sample code from the documentation has a spelling error in this line: B4X: cd.Initialze(Colors.Green, 5dip) where Initialze should of course be Initialize
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2011 #3 Thanks. Will be fixed. Upvote 0