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_LEFTAlign the popup toward the left by defaultCOMBO_HEIGHT_SMALLMax ~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_REGULARMax ~8 items visible (default)COMBO_HEIGHT_LARGEMax ~20 items visibleCOMBO_HEIGHT_LARGESTAs many fitting items as possibleCOMBO_NO_ARROW_BUTTONDisplay on the preview box without the square arrow buttonCOMBO_NO_PREVIEWDisplay only a square arrow buttonCOMBO_HEIGHT_MASKShortcut: “imgui.COMBO_HEIGHT_SMALL | imgui.COMBO_HEIGHT_REGULAR | imgui.COMBO_HEIGHT_LARGE | imgui.COMBO_HEIGHT_LARGEST”.