Free VBBubble 1.0 Download
Current Page: Home > Development > Source Code >

VBBubble 1.0 Download

VBBubble 1.0

License: Freeware Free
Downloads:
Publisher: Karl E. Peterson
File size: 147KB
OS: Windows XP, 2000, 98, Me
Date added: 2009-10-27
Homepage: http://vb.mvps.org/
Category: Development

VBBubble 1.0 Description

"Add multiline and text alignment support to your VB tooltips"


BS Editor: The sample demonstrates how to add multiline and text alignment support to your VB ToolTips. It's done the hard way, by subclassing the tooltip window and handle all the drawing. But the code is encapsulated in a BAS module that can be included in any project, and used by simply adding two function calls. Users familiar with the Windows API can customize the drawing routine to add extra effects.
The code only works on the tooltips provided by VB's Extender object and that is added to all contorls. It will not affect tooltips created internally by controls, such as the ListItem tips in a ListView control.
For an alternative way to create multiline tooltips, based on the control in Comctl32.dll, see the links below.
Details
A VB program will only have one single tooltip window per process. The window has the classname "VBBubble" in the IDE, and "VBBubbleRT5" or "VBBubbleRT6" during runtime, depending on VB version. The window is created the first time the mouse cursor passes over the client area of a Form or UserControl (first WM_MOUSEMOVE message).
While working in the IDE, the tooltip window will not be destroyed as you start and stop the application. The same window will be used until you quit VB.
This sample first uses the EnumThreadWindows function to try to locate an existing tooltip window. If that fails, it sets up a thread CBT hook using SetWindowsHookEx so the application gets notified when a window is created. In any case, when a tooltip window is found, it's subclassed. The module will then handle the WM_WINDOWPOSCHANGING and WM_PAINT messages so that the window is sized and drawn like we want it.
To enable this, call the HookToolTips function in the module. This is normally done sometime during application startup, in Form_Load or Sub Main. You also have to call the UnhookToolTips function before the application ends to remove the subclass. Not doing that might cause the application to crash when closed. you can free download VBBubble 1.0 now.

VBBubble 1.0 Keywords

VBBubble 1.0 Related Software

  • OpSys
    Determine what operating system your application is running under.
  • Dynamic PInvoke method calls
    Gives you the ability to build and execute code at runtime.
  • VBBubble
    Add multiline and text alignment support to your VB tooltips
  • Command output
    Capture the output of a console application into a VB String
  • BcHelp
    Can be used to quickly open the right help page in your browser
  • HookMe
    Native subclassing technique for VB5/6. Extremely clean.
  • MovedMsg
    Position a MsgBox anywhere on screen, or directly over specified window.
  • ObjArrays
    Create an array of objects that provide WithEvents functionality.
  • EnumMsgs
    Enumerates the list of strings Windows maintains for things like
  • EnumRes
    Enumerates resources embedded within any file, and displays many standard types.
  • Mainboard DMI Information Viewer
    Report make and model of the motherboard as well as a wealth of information
  • DirDrill
    Demonstrates recursive use of VB's Dir function.
  • Assembly Cache Viewer
    A tool window add-in for Visual Studio .NET
  • ThemeMe
    A utility for embedding a manifest resource in an executable file
  • LongScroll
    Provides support for Long (32-bit) values with standard scrollbars;
  • ShellLink
    Read and write shortcut files from managed code.
  • CustomBlt
    Provides TransBlt and TileBlt routines for transparent and tiled bitblts.
  • RegSettings
    Replacement for VB's native registry functions.
  • ListSearch
  • Shell Namespaces
    Create a namespace extension.
  • COMRunDll
    A simple wrapper that enables COM serversto be called from Rundll32.exe

VBBubble 1.0 Publisher's Software

    Software by Letter

    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Others

    New Release Software