Delphi with Tmultiview does not get desired height

Asked

Viewed 329 times

0

I’m having trouble defining the height (Height) for a Tmultiview that is set to "arise" from bottom to top (property DrawerOptions -> Placement = Bottom). My Android app gets the screen horizontal (I force it to stay horizontal) and I need Multiview to appear at the bottom The problem is that even setting Height = 50 (for example), it always takes on another much higher value.

How do I fix it?

  • since you define that it should align with bottom and then force the horizontal, it would not be the case to set it to align the left?

  • I don’t understand what you mean. The app runs horizontally, so Bottom remains the bottom. If I align on Left, Multiview will necessarily appear from the left of the application as it should, it is not?

  • Just to add, I’ve already managed to make the Multiview appear on the bottom. What I can’t do is keep Height at the value I’ve set, because after compiling it is self-confident.

  • blocks the code for us to scan?

  • There is no code... just put a Tmultiview on the screen and set the alignment properties. In my case, I’m asking the Multiview to align with Bottom in a horizontal window and this is happening smoothly. What I’m unable to do is limit the Height property of Multiview to 100px. In design time is OK, but after compiling it gets another size larger.

  • 1

    You need code buddy, Design is a thing, Execução is another!

  • @Junior, I didn’t see that coming. The component was not respecting the value set in the Height property at design time... I had never seen it! I was a developer years ago, using Delphi 7 when it was the best version of all, then I dropped out and came back to need it now with the Delphi 10 version and I’m very surprised by this behavior. But OK. Solved the problem setando Height = 100 (for example) at runtime. Thank you!

Show 2 more comments

1 answer

0


Just to mark the question as answered and resolved, but giving due credit to @Júniormoreira, the problem was solved only by setting the property Height = XXX pixels in Multiview, but at runtime.

OBS.: I could not understand why Multiview change at runtime the default value for Height at development time.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.