Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TEdit height changing when switching between platform view in designer



Permlink Replies: 2 - Last Post: Mar 26, 2018 11:52 AM Last Post By: Markus Humm
Markus Humm

Posts: 5,113
Registered: 11/9/03
TEdit height changing when switching between platform view in designer
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 23, 2018 4:48 PM
Hello,

when I switch from Windows to Android and then back to Windows (Delphi
Berlin) the height of TEdit gets messed up.

Originally it was 22 before switching to Android view. After switching
back form designer changes it to 32.

Here's my report:
https://quality.embarcadero.com/browse/RSP-20197

Now how can I get around this?
Defining the edit's size as platform default won't help, as this implies
a fixed width (might be worth a feature request to not chang ehte width
of an edit via this checkbox?).

Greetings

Markus
Jeremy North

Posts: 402
Registered: 9/20/99
Re: TEdit height changing when switching between platform view in designer
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 25, 2018 5:47 PM   in response to: Markus Humm in response to: Markus Humm
Markus Humm wrote:
Hello,

when I switch from Windows to Android and then back to Windows (Delphi
Berlin) the height of TEdit gets messed up.

Originally it was 22 before switching to Android view. After switching
back form designer changes it to 32.

Here's my report:
https://quality.embarcadero.com/browse/RSP-20197

Now how can I get around this?
Defining the edit's size as platform default won't help, as this implies
a fixed width (might be worth a feature request to not chang ehte width
of an edit via this checkbox?).

Sounds like you need to use the feature where each platform has its own FMX file.

Could be the TEdit for Android is forcing the minimum size to 32, so the IDE address to fulfill that contract.

Also, you use 22px for windows - yikes
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: TEdit height changing when switching between platform view in designer
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 26, 2018 11:52 AM   in response to: Jeremy North in response to: Jeremy North
Am 26.03.2018 um 02:47 schrieb Jeremy North:
Markus Humm wrote:
Hello,

when I switch from Windows to Android and then back to Windows (Delphi
Berlin) the height of TEdit gets messed up.

Originally it was 22 before switching to Android view. After switching
back form designer changes it to 32.

Here's my report:
https://quality.embarcadero.com/browse/RSP-20197

Now how can I get around this?
Defining the edit's size as platform default won't help, as this implies
a fixed width (might be worth a feature request to not chang ehte width
of an edit via this checkbox?).

Sounds like you need to use the feature where each platform has its own FMX file.

Could be the TEdit for Android is forcing the minimum size to 32, so the IDE address to fulfill that contract.

Also, you use 22px for windows - yikes

Hello,

1. Even if the edits have to fullfil a contract on Android, they would
have to fullfill a contract on Windows as well, means when I switch
back they need to shring back agaik.

2. What is so yikes about 22px for Windows? That seems to be platform
default there.

3. I know that I can create separate form layouts for different devices,
but I try to get by by just working on the master as far as possible
and until now I usually managed. So when I change the appearance of
the master by selecting a different platform I'd expect the thing to
display stuff in the proper size.

4. Another thing I noticed: platform default sizes apply to X and Y.
But in most cases for X it makes no sense. A platform default width
edit seems just small and a combo box is too small to be really
useful with this sheme as well. Maybe we need more flexibility here
by having a checkbox for platformdefaultX and Y respectively.

Greetings

Markus
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02