Anyone know how to align this?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: heatherlaine, Klaus, FourthWorld, kevinmiller

Post Reply
marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Anyone know how to align this?

Post by marksmithhfx » Wed Dec 20, 2017 3:16 am

I think I am missing the obvious. I just want the 0 lined up above the other numbers. Any suggestions.

Thanks
Screen Shot 2017-12-19 at 8.03.45 PM.png
Screen Shot 2017-12-19 at 8.03.45 PM.png (15.63 KiB) Viewed 494 times
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

bogs
Posts: 2063
Joined: Sat Feb 25, 2017 10:45 pm

Re: Anyone know how to align this?

Post by bogs » Wed Dec 20, 2017 3:18 am

Maybe put a space before the 0 to make up for the + sign before all the other numbers?
*Edit - I should clarify that, I mean use a label instead of the name, and in the label contents put the space before the 0 to even it out, like this.
Image

Alternately, you could use right align for the button text.
Image
Image

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Re: Anyone know how to align this?

Post by marksmithhfx » Wed Dec 20, 2017 3:35 am

I did try adding spaces but LC just ignores them. Also, I looked for align but apparently not hard enough. After you mentioned it I looked again and ah ha, there it was. That did the trick!

Thanks
Screen Shot 2017-12-19 at 8.31.15 PM.png
Screen Shot 2017-12-19 at 8.31.15 PM.png (13.74 KiB) Viewed 485 times
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

bogs
Posts: 2063
Joined: Sat Feb 25, 2017 10:45 pm

Re: Anyone know how to align this?

Post by bogs » Wed Dec 20, 2017 3:49 am

You are very welcome, I realized almost immediately after posting that I should have clarified that. The name label of the control doesn't allow a space to be recognized, but a label control *does*. Of course, right align would be the best easiest way to do it on the control itself. Doh moment :oops:
Image

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Re: Anyone know how to align this?

Post by marksmithhfx » Thu Dec 21, 2017 2:26 am

No worries. I appreciate the time you took to reply. And it solved my problem :)

Mark
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2664
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Anyone know how to align this?

Post by richmond62 » Thu Dec 21, 2017 7:11 am

I think I am missing the obvious.
Welcome to the club.

This is where the helpful people on the Forum come in 8)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”