Max width of hint

Kcko's profile image Kcko posted 2 months ago in General Permalink

When text in hint is really long, hint popup is stretched across the window / whole viewport (really hard to read :-), optimum for human eye is something like 80ch (in CSS), so could you restrict it for 400px eg? or something like that.

notHeidi's profile image notHeidi posted 2 months ago Permalink

It'd be even harder to read if it was cut off at 400px... some might even say it'd be impossible!

Kcko's profile image Kcko posted 2 months ago Permalink

You're wrong, of course. Do you think that one long line at 1600px is better and better to read?

notHeidi's profile image notHeidi posted 2 months ago Permalink

Wrong, huh? OK, tell me what this hint is (it's been cut off at 400px) - I ned to know what to do!

1 attachment(s):
  • hint
ansgar's profile image ansgar posted 2 months ago Permalink

The hint texts contain preformatted text, and linebreaks. I could set HintInfo.HintMaxWidth to a pixel value of let's say 400px, which would not cut off lines but generate some unwanted additional linebreaks. I did that testwise here, see the yellow parts which are now moved to separate lines:

grafik.png

Maybe 400px is just a bad low value. @Kcko do you recall which hint exactly took too much width?

notHeidi's profile image notHeidi posted 2 months ago Permalink

Good heavens - I never clocked they were multi-line - and so they are.

Oh well, I shall go stick my head in a bucket, and leave you to it :|

Kcko's profile image Kcko posted 2 months ago Permalink

ansgar that's exactly what I meant! +1

notHeidi it doesn't matter, as long as you've understood it ;-)

ansgar's profile image ansgar posted 1 month ago Permalink

That screen above was just a quick test on my side, it's not in the nightly builds.

Normally that help for COUNT looks ok to me:

grafik.png

I was thinking there were wider ones but I can't find any.

Kcko's profile image Kcko posted 1 month ago Permalink

Looks good! But could you add some internal indentation on the sides? (padding in css language) :)

Code modification/commit ed83ed0 from Ansgar Becker <anse@heidisql.com>, 1 month ago, revision 12.10.0.7019
Wrap long lines in data type hints. See https://www.heidisql.com/forum.php?t=43881
ansgar's profile image ansgar posted 1 month ago Permalink

Yes, with some effort I could create a custom padding to all hints. But that looks wrong for the short hints:

grafik.png

ansgar's profile image ansgar posted 1 month ago Permalink

https://stackoverflow.com/questions/79443544/delphi-hintwindow-with-padding

Kcko's profile image Kcko posted 1 month ago Permalink

Padding is nice to have, not necessary. Max-width hint option is more than sufficient, thx a lot!

Please login to leave a reply, or register at first.