Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Delphi Seattle - TGridPanelLayout columnspan property


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Jako Grobler

Posts: 45
Registered: 6/26/15
Delphi Seattle - TGridPanelLayout columnspan property  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2016 10:14 AM
Does the FireMonkey TGridPanelLayout ColumnSpan property only work on a Windows target? That kind of makes the layout container useless for iOS and Android.

1) Create a new blank multi-device project.
2) Drop a TGridPanelLayout on the main form and set it to align with client.
3) Leave the default to 2 columns and 2 rows.
4) Drop a TEdit control on the grid panel.
5) Select the grid panel and expand the ControlCollection property.
6) Select the first and only instance (it contains the TEdit) in the list and update the ColumnSpan property to 2.

Notice how the edit now centers itself nicely across the top row columns.

7) Next, in the IDE View select any iOS or Android view.

Instantly the control layout reverts to a ColumnSpan of 1. If you try to edit the ColumnSpan again it simply flashes for a moment and reverts back to 1.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02