Module idaapi :: Class Form :: Class EmbeddedChooserControl
[frames] | no frames]

Class EmbeddedChooserControl

   object --+        
            |        
 Form.Control --+    
                |    
Form.InputControl --+
                    |
                   Form.EmbeddedChooserControl

Embedded chooser control. This control links to a Chooser2 control created with the 'embedded=True'

Instance Methods
 
__init__(self, chooser=None, swidth=40, hlp=None)
Embedded chooser control
 
AddCommand(self, caption, flags=_idaapi.CHOOSER_POPUP_MENU, menu_index=-1, icon=-1)
Adds a new embedded chooser command Save the returned value and later use it in the OnCommand handler
 
free(self)
Frees the embedded chooser data

Inherited from InputControl: get_tag

Inherited from Control: get_arg

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  value = property(lambda self: self.chooser)
Returns the embedded chooser instance
Instance Variables

Inherited from Control: arg, form, id

Properties

Inherited from object: __class__

Method Details

__init__(self, chooser=None, swidth=40, hlp=None)
(Constructor)

 

Embedded chooser control

Parameters:
  • chooser - A chooser2 instance (must be constructed with 'embedded=True')
Overrides: object.__init__

AddCommand(self, caption, flags=_idaapi.CHOOSER_POPUP_MENU, menu_index=-1, icon=-1)

 

Adds a new embedded chooser command Save the returned value and later use it in the OnCommand handler

Returns:
Returns a negative value on failure or the command index

free(self)

 

Frees the embedded chooser data

Overrides: Control.free