|
Nick Ramoundos submitted this. It is a modification of the Alaska sample which
simplifies things a bit and adds some new features. From the header:
While the ToolTips system that was included with the original
xBase++ release worked fine, it was a little too complex for me.
I took the liberty to bring it down a notch and clean up the nested
source for ease of understanding.
I removed the Help database and simplified by using the ":helplink"
instance variable of the xbPart as the repository for Tooltip
information. If you already are using the :helplink variable for
other purposes (like help!), make it an array and modify the code
below (and your help code) to reference the appropriate elements of
the :helplink array.
Additionally, I dislike wide Tooltips so I modified the code
to wrap extra long tip text. The default maximum is 45. You and
change this below (nMaxWidth). I also added a check to prevent the
tips from running off the screen.
Nick Ramoundos, NYC (January, 2002)
|