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_NONE

  • COMBO_POPUP_ALIGN_LEFT Align the popup toward the left by default

  • COMBO_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 visible

  • COMBO_HEIGHT_LARGEST As many fitting items as possible

  • COMBO_NO_ARROW_BUTTON Display on the preview box without the square arrow button

  • COMBO_NO_PREVIEW Display only a square arrow button

  • COMBO_HEIGHT_MASK Shortcut: “imgui.COMBO_HEIGHT_SMALL | imgui.COMBO_HEIGHT_REGULAR | imgui.COMBO_HEIGHT_LARGE | imgui.COMBO_HEIGHT_LARGEST”.