F Falcon Member Licensed User Sep 15, 2020 #1 Hi Experts, Could someone please tell me what the equivalent is in B4i for the following B4A code: Code: Copy Dim ColourRed As Colors ColourRed.Initialize2(Colors.Red,10dip,2dip,Colors.black) Dim B as Button B.Background = ColourRed I am basically trying to make a border around a button programmatically, it is specifically the line with 'Initialize2' in, that I need the equivalent of for B4i. Thank you for your time, Regards, Jacques.
Hi Experts, Could someone please tell me what the equivalent is in B4i for the following B4A code: Code: Copy Dim ColourRed As Colors ColourRed.Initialize2(Colors.Red,10dip,2dip,Colors.black) Dim B as Button B.Background = ColourRed I am basically trying to make a border around a button programmatically, it is specifically the line with 'Initialize2' in, that I need the equivalent of for B4i. Thank you for your time, Regards, Jacques.
Erel B4X founder Staff member Licensed User Longtime User Sep 15, 2020 #2 There is no Initialize or Initialize2 method in Colors. In B4A or B4i. You should use B4XView.SetColorAndBorder. Upvote 0
There is no Initialize or Initialize2 method in Colors. In B4A or B4i. You should use B4XView.SetColorAndBorder.
F Falcon Member Licensed User Sep 15, 2020 #3 Never mind, I figured it out, it is: Code: Copy B.SetBorder(2dip,Colors.Black,10dip) Upvote 0