SftBox/DLL includes sample code for C and C++/MFC.
The samples listed in the following table can be found in the folder "\Program Files (x86)\Softelvdm\SftBox DLL 6.0\Samples". Each sample is installed in its own subdirectory, with a Visual Studio solution and project. These samples are also referenced throughout the documentation.
| C Sample | Description |
|---|---|
| Colors Sample | Color selection with a color sample as cell picture for each item, a multi-column dropdown portion with column headers and a sizing box, and a color dialog opened by the first item. |
| DataInput Sample | Multi-column dropdown combo boxes for data entry with autocompletion, a selectable edit and search column, sorting by clicking a column header and a list of recently entered text. |
| ItemImages Sample | A hierarchy with item pictures, tree lines and expand/collapse buttons that expand and collapse the items, and a combo box with a picture for each item and a picture on the dropdown button. |
| DragDrop Sample | Drag & drop between two simple combo boxes - items are moved, text selected in the edit control portion is copied. |
| Fonts Sample | Font name, font style and font size selection for the display or a printer, with each font name shown in its own font and sorting using the column headers above the static portion and the edit control portion. |
| C++/MFC Sample | Description |
|---|---|
| Colors Sample | Color selection with a color sample as cell picture for each item, hosted through CSftBox and DDX_Control, with notifications handled through ON_CONTROL. |
| DataInput Sample | Multi-column dropdown combo boxes for data entry with autocompletion, a selectable edit and search column, sorting by clicking a column header and a list of recently entered text. |
| ItemImages Sample | A hierarchy with item pictures, tree lines and expand/collapse buttons that expand and collapse the items, and a combo box with a picture for each item and a picture on the dropdown button. |
| DragDrop Sample | Drag & drop between two simple combo boxes - items are moved, text selected in the edit control portion is copied. |
| Fonts Sample | Font name, font style and font size selection for the display or a printer, with each font name shown in its own font and sorting using the column headers above the static portion and the edit control portion, including SFTBOXN_MAIN_NOTIFICATION handling through ON_CONTROL. |