| Home Page | Recent Changes | Preferences

# Useful UWindow Extensions/Tooltips

## Tooltips for controls in UWindowDialogClientWindow

To activate the tooltips for controls placed in a UWindowDialogClientWindow, use the controls' `SetHelpText` method and add this piece of code to your UWindowDialogClientWindow subclass. (Probably merge it with an existing Notify function.)

    function Notify(UWindowDialogControl C, byte E)
    {
        switch(E) {
            // these are used to display tooltips
            case DE_MouseMove:
                if ( UMenuRootWindow(Root) != None && UMenuRootWindow(Root).StatusBar != None)
                    UMenuRootWindow(Root).StatusBar.SetHelp(C.HelpText);
                break;
            case DE_MouseLeave:
                if ( UMenuRootWindow(Root) != None && UMenuRootWindow(Root).StatusBar != None)
                    UMenuRootWindow(Root).StatusBar.SetHelp("");
                break;
        }
        Super.Notify(C, E);
    }

## Related topics

- UWindowDialogControl

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In