ToolTip Class 2.0
Now: Without a dll!
Well, I finally got around to updating this, with a little nagging from Mattike
Change log:
Only two noticable differences from the first version:
- No more _ToolTip.dll! - Thanks to Patchou changing the number of parameters allowed with Interop.Call from 9 to 12, I no longer need to use a dll to create the tooltip window!
- ToolTip.Destroy(); - Just a new function that "does what it says on the tin", destroys the tooltip!
Example Usage:
code:
// Create your window.
var MyWindow = MsgPlus.CreateWnd('MyWindow.xml', 'MyWindow');
// Get a handle to the button
var MyButton = MyWindow.GetControlHandle("ExampleButton");
// Create the ToolTip window
var MyToolTip = new ToolTip(MyButton, "Text on tooltip", "ToolTip Title", TTI_INFO);
// Update the title of the tooltip
MyToolTip.Title = "New ToolTip Title";
MyToolTip.UpdateToolTip();
List of icon constants:
- TTI_NONE
- TTI_INFO
- TTI_WARNING
- TTI_ERROR
- TTI_INFO_LARGE
- TTI_WARNING_LARGE
- TTI_ERROR_LARGE
- Any HICON aquired through LoadIcon
Download ToolTip Class now!