PyDLGITEMTEMPLATE Object
A tuple describing a control in a dialog box.
Win32 API References
Items
- [0] string/int : windowClass
- The window class. If not a string, it must be in integer defining one of the built-in Windows controls. If a string, it must be a pre-registered windows class name, a built-in class, or the CLSID of an OLE controls. Built-in classes include:
Control Type | String Class Name |
Check Box | Button |
Combo Box | ComboBox |
Command Button | Button |
Header | SysHeader32 |
Label | Static |
List Box | ListBox SysListView32 |
Option Button | Button |
Tab | SysTabControl32 |
Text Box | Edit RICHEDIT |
Tool Bar | ToolbarWindow32 |
Tool Tips | tooltips_class32 tooltips_class |
Tree View | SysTreeView32 The built-in windows controls are: |
Integer Value | Window Type |
0x0080 | Button |
0x0081 | Edit |
0x0082 | Static |
0x0083 | List box |
0x0084 | Scroll bar |
0x0085 | Combo box |
- [1] PyUnicode : caption
- Caption for the control, or None
- [2] int : ID
- The child ID of this control. All children should have unique IDs. This ID can be used by PyCDialog::GetDlgItem to retrieve the actual control object at runtime.
- [3] (int,int,int,int) : (x,y,cx,cy)
- The bounding rectange for the control, relative to the upper left of the dialog, in dialog units.
- [4] int : style
- The window style of the control (WS_* constants). Depending on the type of control, other constants may also be valid (eg, BS_* for Button, ES_* for Edit controls, etc).
- [5] int : extStyle
- The extended style of the control.
- [6] buffer : extraData
- A byte string or buffer used as extra data for the control. The value depends on the control.