I have an application that allows users to enter a regular expression (which they create) to analyze the document repository. Search results are displayed in the TTreeView control. I want to set the TreeView Hint property (not every Treenode) to the regular expression used, but the problem I am facing is that the regular expression may contain the string character ( |) (regular expression OR), which Delphi interprets as a split between the tip and the long hint. I tried to replace each occurrence |with ||, hoping that it would have the same effect as use &&, and not &(for example, in menu items) to no avail.
Is there a way to insert |into a tooltip without interpreting it as a separator?
source
share