On NT 4.0, (with Service Pack 3 in my case), if one adds an item to a
TTreeView that has a Caption of more than 79 characters and the TreeView
itself is too narrow to display the label, this rollover feature causes
the application to abort (it runs into a hard-coded breakpoint in
'ntdll.dll').
Explorer solves this problem by truncating the tool-tip to 79
characters. How can I do that with Builder? (You can see this by
making a directory with an 80+ character file name - the tooltip will
only display the first 79 characters).
This magic 'tool-tip' is not really a tool tip, either. It is somehow
distinct from the ShowHint and Hint property - it's some different
animal. I even set up a global tip handler via Application->OnShowHint
= myHandler() and the thing never gets called. I also have ShowHint
turned off for the TTreeView in question.
Help is appreciated.
Thanks,
Bill Rebey
Bill Rebey wrote in message <3551FAFF...@hublink.com>...
>When a TTreeView Node has a caption that is wider than the TTreeView
>itself, rolling the mouse pointer ofver the Caption causes a tool-tip to
>be displayed that shows the full Caption.
>
>This magic 'tool-tip' is not really a tool tip, either. It is somehow
>distinct from the ShowHint and Hint property -
Yes, it is a different beast. This functionality is provided by the new
comctrl dlls that ship with internet explorer 3 and 4. When windows first
came out, treeviews didn't even display tooltips over items that were too
long.
I'm not sure how you're going to solve it. You could try limiting the text
in the tree node itself. Otherwise, you will need to snoop around and see
how explorer does it.
Harold Howe (TeamB)
http://www.bcbdev.com