SVirtualWindow::OnQueryPopupMethod

Popups can manifest in a NEW OS WINDOW or via an OVERLAY in an existing window.

Windows
MacOS
Linux

Override Hierarchy

SWidget::OnQueryPopupMethod()

SVirtualWindow::OnQueryPopupMethod()

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/SVirtualWindow.h

Include

#include "Widgets/SVirtualWindow.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/SVirtualWindow.cpp

Syntax

virtual FPopupMethodReply OnQueryPopupMethod() const

Remarks

Popups can manifest in a NEW OS WINDOW or via an OVERLAY in an existing window. This can be set explicitly on SMenuAnchor, or can be determined by a scoping widget. A scoping widget can reply to OnQueryPopupMethod() to drive all its descendants' poup methods.

e.g. Fullscreen games cannot summon a new window, so game SViewports will reply with EPopupMethod::UserCurrentWindow. This makes all the menu anchors within them use the current window.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss