IDAPython 9.0
Loading...
Searching...
No Matches
Form.DropdownListControl Class Reference
Inheritance diagram for Form.DropdownListControl:
Form.InputControl _qstrvec_t Form.Control py_clinked_object_t pyidc_opaque_object_t

Public Member Functions

 __init__ (self, items=[], readonly=True, selval=0, width=50, swidth=50, hlp=None)
 
 free (self)
 
 set_items (self, items)
 
- Public Member Functions inherited from Form.InputControl
 get_tag (self)
 
 is_input_field (self)
 
- Public Member Functions inherited from Form.Control
 get_arg (self)
 
- Public Member Functions inherited from _qstrvec_t
 assign (self, other)
 
 __setitem__ (self, idx, s)
 
 __getitem__ (self, idx)
 
 addressof (self, idx)
 
 add (self, s)
 
 from_list (self, lst)
 
 clear (self, qclear=False)
 
 insert (self, idx, s)
 
 remove (self, idx)
 
- Public Member Functions inherited from py_clinked_object_t
 __del__ (self)
 
 copy (self)
 

Public Attributes

 readonly = readonly
 
 arg
 
- Public Attributes inherited from Form.InputControl
 tp = tp
 
 width = width
 
 swidth = swidth
 
 hlp = hlp
 
 is_relative_offset = is_relative_offset
 
 id
 
- Public Attributes inherited from Form.Control
int id = 0
 
 input_field_index = None
 
 arg = None
 
 form = None
 
bool form_hasattr = False
 

Properties

 value = property(__get_selval, __set_selval)
 
 selval = property(__get_selval, __set_selval)
 
- Properties inherited from _qstrvec_t
 size = property(__get_size)
 
- Properties inherited from py_clinked_object_t
 clink = property(lambda self: self.__clink__)
 
 clink_ptr = property(lambda self: self._get_clink_ptr())
 

Additional Inherited Members

- Protected Member Functions inherited from _qstrvec_t
 _create_clink (self)
 
 _del_clink (self, lnk)
 
 _get_clink_ptr (self)
 
- Protected Member Functions inherited from py_clinked_object_t
 _free (self)
 

Detailed Description

Dropdown control
This control allows manipulating a dropdown control

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
items = [],
readonly = True,
selval = 0,
width = 50,
swidth = 50,
hlp = None )
@param items: A string list of items used to prepopulate the control
@param readonly: Specifies whether the dropdown list is editable or not
@param selval: The preselected item index (when readonly) or text value (when editable)
@param width: the control width (n/a if the dropdown list is readonly)
@param swidth: string width

Reimplemented from Form.InputControl.

Member Function Documentation

◆ free()

free ( self)
Free the control

Reimplemented from Form.Control.

◆ set_items()

set_items ( self,
items )
Sets the dropdown list items

Member Data Documentation

◆ arg

arg
Initial value:
= ctypes.pointer(ctypes.c_void_p.from_address(self.
clink_ptr)), ctypes.pointer(ctypes.c_void_p.from_address(
val_addr))

◆ readonly

readonly = readonly

Property Documentation

◆ selval

selval = property(__get_selval, __set_selval)
static

◆ value

value = property(__get_selval, __set_selval)
static

The documentation for this class was generated from the following file: