IDA SDK

- Main Page
- Header Files
- Classes
- Modules

Macros
Generic chooser flags

## Detailed Description

used by 'flags' parameter for Functions: generic list choosers and also chooser_info_t::flags

## Macros
#define | CH_MODAL 0x01
| Modal chooser.
#define | CH_MULTI 0x02
| The chooser will allow multi-selection (only for GUI choosers). More...
#define | CH_MULTI_EDIT 0x04
| The 'edit' callback will be called for all selected items using the START_SEL/END_SEL protocol. More...
#define | CH_NOBTNS 0x08
| do not display ok/cancel/help/search buttons. More...
#define | CH_ATTRS 0x10
| generate ui_get_chooser_item_attrs (gui only)
#define | CH_NOIDB 0x20
| use the chooser even without an open database, same as x0=-2 (see below)
#define | CH_UTF8 0x40
| string encoding is utf-8
#define | CH_BUILTIN_MASK 0xF80000
| Mask for builtin chooser numbers. Plugins should not use them.
#define | CH_BUILTIN(id) ((id+1) << 19)
#define | CH_GETCN(flags) (((flags & CH_BUILTIN_MASK) >> 19) - 1)

## Macro Definition Documentation

#define CH_MULTI 0x02

The chooser will allow multi-selection (only for GUI choosers).

If multi-selection is enabled, a multi-selection 'del' callback will be called with:

- uint32 = START_SEL before calling the first selected item
- uint32 = 1..n for each selected item
- uint32 = END_SEL after calling the last selected item

If the callback returns 'false', further processing of selected items is cancelled.

#define CH_MULTI_EDIT 0x04

The 'edit' callback will be called for all selected items using the START_SEL/END_SEL protocol.

This bit implies CH_MULTI (valid only for gui)

#define CH_NOBTNS 0x08

do not display ok/cancel/help/search buttons.

meaningful only for gui modal windows because non-modal windows do not have any buttons anyway. text mode does not have them neither