Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Preventing horizontal scrolling of TStringGrid


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


Permlink Replies: 2 - Last Post: Mar 28, 2015 11:38 AM Last Post By: Markus Humm
Markus Humm

Posts: 5,113
Registered: 11/9/03
Preventing horizontal scrolling of TStringGrid  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 20, 2015 8:38 AM
Hello,

using XE7, how to prevent the possibility of horizontal scrolling by the user on Android?

More details:
- the TString grind contains 2 columns
- is align := client
- is a child of a TLayout which is align := client as well
- has AUtoHide := true
- anchors all set (ok, align := client hints to that already)

How to make it only scroll vertically but not horizontally?

Both columns have align := left

Greetings

Markus
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Preventing horizontal scrolling of TStringGrid  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 25, 2015 10:26 AM   in response to: Markus Humm in response to: Markus Humm
Hello,

the solution for that one is to make sure the width of all columns added
up is smaller than the width of the device.

I just would have loved some auto width property for the last column so
I don't need to implement that myself.

Greetings

Markus
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Preventing horizontal scrolling of TStringGrid  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 28, 2015 11:38 AM   in response to: Markus Humm in response to: Markus Humm
Answered it myself meanwhile.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02