Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
dpr  
#1 Posted : Thursday, February 7, 2019 2:52:58 PM(UTC)
dpr

Rank: Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 20
Ireland

Thanks: 4 times
Is it possible to centre controls vertically on a page? Currently, even with a table, all controls seem to be vertically aligned to the top of the page or cell. I am trying to create a navigation screen consisting of a number of buttons which link to sub pages and it would be nice to locate the buttons around the centre of the screen as opposed to the top.
bbv  
#2 Posted : Thursday, February 7, 2019 3:00:20 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 498

Was thanked: 88 time(s) in 88 post(s)
Yes, see the toolbar and/or Vertical Alignment property
dpr  
#3 Posted : Thursday, February 7, 2019 9:56:21 PM(UTC)
dpr

Rank: Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 20
Ireland

Thanks: 4 times
I can see the Vertical Alignment button on the toolbar but it is not always enabled. I have looked through the documentation but can seem to find out how to use this.

If I wanted to but a button control in the centre of a form so that no matter what the device or resolution was the button would always be in the center. Without hard coding in top and left control padding, how else can I do this? Is there a way I could create a 3 row table and have the rows definable similar to WPF or HTML where you could have a top and bottom row of a fixed height and centre row would fill the rest. Then align the button control in the centre of the cell both vertically and horizontally. Attached is a small sample where I am trying to show a button in the centre of the screen :)
File Attachment(s):
CentreButtonInForm.mtd (5kb) downloaded 26 time(s).
bbv  
#4 Posted : Friday, February 8, 2019 10:55:38 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 498

Was thanked: 88 time(s) in 88 post(s)
Ok, you are talking about centering button in a whole form. Didn't expect that - never heard of such request till yet.

It is indeed currently only possible with a simple calculation. Here is an example with top margin calculated via $MT_CanvasY. Hope this helps
File Attachment(s):
CentreButtonInForm.mtd (4kb) downloaded 28 time(s).
thanks 1 user thanked bbv for this useful post.
dpr on 2/8/2019(UTC)
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.