Rank: Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 20 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.
|
|
|
|
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
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 20 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 :)
|
|
|
|
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
|
1 user thanked bbv for this useful post.
|
|
|
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.