Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

Legacy:Useful UWindow Extensions/Tooltips

From Unreal Wiki, The Unreal Engine Documentation Site
< Legacy:Useful UWindow Extensions
Revision as of 09:26, 10 May 2002 by Wormbo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Tooltips for controls in UWindowDialogClientWindow[edit]

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[edit]