Notice Of Closure

Please note that this website is due to close down on 15th June 2020.

In the interim I will try to move as much content as possible over to my GitHub account. Thanks to everyone who has supported the site over the years.

» Help

How to create multiline hints

   

The Delphi/Kylix Object Inspector allows changing of the Hint property (obviously...). But since Hint property is a string property, the Object Inspectory only gives you one line for this. What if you want to create multiline hints? I have seen dozens of components that give you the "ability" to create such hints. Which one is the best? None of them. Why?! Simple, althougth the Object Inspector does not allow you to create lines you can always use code. Since Hint is a string property then you can always use #13#10 for Delphi and #10 for Kylix. The hint window will appear the way you want it to. Using components for this pretty much is the sloppiest way to get around this.

ButtonWindows.Hint := '1st line'#13#10'2nd line'; // Delphi code
...
ButtonLinux.Hint := '1st line'#10'2nd line'; // Kylix code
If you want a way to enter multi-line strings at design time use the Extended String Property Editor.
Author: Unknown
Added: 2007-06-02
Last updated: 2007-10-12

« Return to contents »