LoginSignup
3
0

More than 5 years have passed since last update.

TGridLayoutで幅とか高さとか勝手にどうにかしたい

Posted at

初めての投稿です。

FMX、ドキュメント弱いの、、

TGridLayoutっていう便利そうなコンポーネトがあります。
Orientationっていうプロパティで、横にずらずらとか縦にずらずらとか勝手にコンポーネントを並べてくれるわけです。

でも、ItemHeightとItemWidthという規定の数字で勝手に操作されるの。

いやぁ、おいらはさぁ

、、、縦に伸びるなら、横幅は一定で
、、、横に伸びるなら、縦幅は一定で

って思いますよね!!

見つけました!!!!!!!!!!!!!

ドュメントには一切書いてないけど、

Orientation = TOrientation.Horizontalなら、
ItemHeightを0以下にすればいい

Orientanion = Orientation.Verticalなら
ItemWidthを0以下にすればいい

でも、でも、でもね、Merginとかがかかると、このままではダメなんです。
頑張れ!エンバカデロさん!!

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0