Using combo flags¶
Combo functions accept various flags to manage their behaviour.
List of all available combo flags (click to see documentation):
COMBO_NONE
= core.COMBO_NONECOMBO_POPUP_ALIGN_LEFT
Align the popup toward the left by defaultCOMBO_HEIGHT_SMALL
Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo()COMBO_HEIGHT_REGULAR
Max ~8 items visible (default)COMBO_HEIGHT_LARGE
Max ~20 items visibleCOMBO_HEIGHT_LARGEST
As many fitting items as possibleCOMBO_NO_ARROW_BUTTON
Display on the preview box without the square arrow buttonCOMBO_NO_PREVIEW
Display only a square arrow buttonCOMBO_HEIGHT_MASK
Shortcut: “imgui.COMBO_HEIGHT_SMALL | imgui.COMBO_HEIGHT_REGULAR | imgui.COMBO_HEIGHT_LARGE | imgui.COMBO_HEIGHT_LARGEST”.