wwregistry Member Licensed User Longtime User Feb 2, 2014 #1 This code is obviously wrong B4X: Label.With = 10%x Label.Height = 10%x My question is what sort of adjustment should I make. I have tried various scaling arrangements but none seem to be adequate?
This code is obviously wrong B4X: Label.With = 10%x Label.Height = 10%x My question is what sort of adjustment should I make. I have tried various scaling arrangements but none seem to be adequate?
NJDude Expert Licensed User Longtime User Feb 2, 2014 #2 If you want a square label then do something like this: B4X: Label1.Width = 10%x Label1.Height = Label1.Width Upvote 0
If you want a square label then do something like this: B4X: Label1.Width = 10%x Label1.Height = Label1.Width
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2014 #3 Your code should also create a square label. Have you changed the label's background color? Upvote 0
wwregistry Member Licensed User Longtime User Feb 2, 2014 #4 Erel Background color is good. NJDude thanks, that solution is so simple. I don't understand the reasoning? Is the Label.width 10% of X automatically scaled to the %Y equivalent? Upvote 0
Erel Background color is good. NJDude thanks, that solution is so simple. I don't understand the reasoning? Is the Label.width 10% of X automatically scaled to the %Y equivalent?