Navigation
Unreal Engine C++ API Reference > Developer > ToolWidgets > Dialog
Inheritance Hierarchy
References
Module | ToolWidgets |
Header | /Engine/Source/Developer/ToolWidgets/Public/Dialog/SCustomDialog.h |
Include | #include "Dialog/SCustomDialog.h" |
Syntax
class SCustomDialog : public [SWindow](API\Runtime\SlateCore\Widgets\SWindow)
Remarks
This is a custom dialog class, which allows any Slate widget to be used as the contents, with any number of buttons that have any text. It also supports adding a custom icon to the dialog.
Usage: TSharedRef
/ returns 0 when OK is pressed, 1 when Cancel is pressed, -1 if the window is closed const int ButtonPressed = HelloWorldDialog->ShowModal();
Note: If the content is only text, see SMessageDialog.
Functions
Type | Name | Description |
---|---|---|
void | Construct ( const FArguments& InArgs ) | |
void | Show () | Show the dialog. This method will return immediately. |
int32 | ShowModal () | Show a modal dialog. |
Classes
Type | Name | Description |
---|---|---|
Public struct | FArguments | |
Public struct | FButton |