SComboBox

A combo box that shows arbitrary content.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Input/SComboBox.h

Include

#include "Widgets/Input/SComboBox.h"

Syntax

template<typename OptionType>
class SComboBox : public SComboButton

Remarks

A combo box that shows arbitrary content.

Constructors

Name Description

Public function

SComboBox()

Functions

Name Description

Public function

void

 

ClearSelection()

Public function

void

 

Construct

(
    const FArguments & InArgs
)

Construct the widget from a declaration

Public function

NullableOpti ...

 

GetSelectedItem()

Public function

void

 

RefreshOptions()

Requests a list refresh after updating options Call SetSelectedItem to update the selected item if required

Public function

void

 

SetSelectedItem

(
    NullableOptionType InSelectedItem
)

Overridden from SWidget

Name Description

Public function Virtual

TSharedRef < ...

 

CreateAccessibleWidget()

Public function Virtual Const

TOptional < F ...

 

GetDefaultAccessibleText

(
    EAccessibleType AccessibleType
)

Assign AccessibleText with a default value that can be used when AccessibleBehavior is set to Auto or Custom.

Protected function Virtual Const

bool

 

IsInteractable()

Protected function Virtual

FReply

 

OnKeyDown

(
    const FGeometry & MyGeometry,
    const FKeyEvent & InKeyEvent
)

Handle key presses that SListView ignores

Protected function Virtual Const

bool

 

SupportsKeyboardFocus()

Checks to see if this widget supports keyboard focus. Override this in derived classes.

Classes

Name

Description

Public struct

FArguments

Protected class

FSlateAccessibleComboBox

An accessible implementation of SComboBox to expose to platform accessibility APIs.

Typedefs

Name

Description

FOnGenerateWidget

Delegate type used to generate widgets that represent Options

FOnSelectionChanged

NullableOptionType

SComboListType

Type of list used for showing menu options.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback