UComboBoxKey

The combobox allows you to display a list of options to the user in a dropdown menu for them to select one.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/ComboBoxKey.h

Include

#include "Components/ComboBoxKey.h"

Syntax

class UComboBoxKey : public UWidget

Remarks

The combobox allows you to display a list of options to the user in a dropdown menu for them to select one. Use OnGenerateConentWidgetEvent to return a custom built widget.

Variables

Name Description

Public variable

bool

 

bEnableGamepadNavigationMode

When false, directional keys will change the selection.

Public variable

bool

 

bHasDownArrow

When false, the down arrow is not generated and it is up to the API consumer to make their own visual hint that this is a drop down.

Public variable

bool

 

bIsFocusable

When true, allows the combo box to receive keyboard focus

Public variable

FMargin

 

ContentPadding

Public variable

FSlateColor

 

ForegroundColor

The foreground color to pass through the hierarchy.

Public variable

FTableRowStyle

 

ItemStyle

The item row style.

Public variable

float

 

MaxListHeight

The max height of the combobox list that opens

Public variable

FGenerateWidget...

 

OnGenerateContentWidget

Called when the widget is needed for the content.

Public variable

FGenerateWidget...

 

OnGenerateItemWidget

Called when the widget is needed for the item.

Public variable

FOnOpeningEvent

 

OnOpening

Called when the combobox is opening

Public variable

FOnSelectionCha...

 

OnSelectionChanged

Called when a new item is selected in the combobox.

Public variable

FComboBoxStyle

 

WidgetStyle

The combobox style.

Constructors

Name Description

Public function

UComboBoxKey()

Functions

Name Description

Public function

void

 

AddOption

(
    FName Option
)

Add an element to the option list.

Public function

void

 

ClearOptions()

Remove all the elements of the option list.

Public function

void

 

ClearSelection()

Clear the current selection.

Public function Const

FName

 

GetSelectedOption()

Get the current selected option

Public function Const

bool

 

IsOpen()

Is the combobox menu openned.

Public function

bool

 

RemoveOption

(
    FName Option
)

Remove an element to the option list.

Public function

void

 

SetSelectedOption

(
    FName Option
)

Set the current selected option.

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Classes