Android Question Button width

grafsoft

Well-Known Member
Licensed User
Longtime User
Hi,

I have several buttons, which are set with similar code (see below). But they get different widths, according to the length of the text. I want the widths all the same. How can I do this?

B4X:
Btnclick.Color=Main.btncolor
Btnclick.TextColor=Main.btntxtcolor
Btnclick.Text="Klick"
Btnclick.Left=Panel1.Width + 10dip   
Btnclick.Top=0%y   
Btnclick.Width=100%y - Panel1.Width - 20dip
 

grafsoft

Well-Known Member
Licensed User
Longtime User
Yes of course! Stupid me. Now it works. It seems the system sets the width automatically if it gets an impossible valie.
 
Upvote 0
Top