#1 2016-06-11 21:51:31

StefvE
Member
Registered: 2016-06-09
Posts: 21

Align of pictures and other items

I've got a little problem:

I want to align a picture in my app but the options are disabled.
Any method how to enable it?

Pic:
UnI6UfL.png

Greetings,
Stef

Offline

#2 2016-06-11 21:52:58

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Align of pictures and other items

Hello Stef,

Such buttons/commands are intented to be used along with at least two controls, in order to set the controls with the same size, position, etc.

Online

#3 2016-06-11 21:55:47

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Align of pictures and other items

David wrote:

Hello Stef,

Such buttons/commands are intented to be used along with at least two controls, in order to set the controls with the same size, position, etc.

Hi David,

Any method how to center a picture or label. So if I start the app on any device it will be centered?

Greetings,
Stef

Offline

#4 2016-06-11 22:09:54

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Align of pictures and other items

Hello,

If we place the image or the label in the app center (in designtime) then, if our application scale automatically, such controls also scale accordingly. If we don't want this behaviour, we can use a bit of CSS, for example, take a look at this forum's thread:

https://www.davidesperalta.com/support/ … php?id=226

Online

#5 2016-06-11 22:12:33

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Align of pictures and other items

But how to tell what's the app's center?

Offline

#6 2016-06-11 22:14:14

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Align of pictures and other items

Hello,

If you take a lookk at the CSS of the linked thread, the app width and height are calculated in percentages. In other words, if you use the above CSS code for one of your image, such image appear centered as you expected, no matter the app size.

Online

#7 2016-06-11 22:15:05

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Align of pictures and other items

Thank you!

Offline

#8 2016-06-11 22:17:49

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Align of pictures and other items

You're welcome Stef!

Online

#9 2016-06-12 15:22:56

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Align of pictures and other items

Even know how to change the font of a label( to any downloaded font)? (Like monospace?)

Offline

#10 2016-06-12 15:25:04

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Align of pictures and other items

Hello Stef,

You can use the label's object inspector (Style, Hover and Focus tabs) font related properties or just a bit of CSS in the "Inline CSS" app's options, for example. I think you can to use the "font-family" or "font" CSS rules to specify a font name to be used.

Online

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.