Documents
NextGrid & NextDBGrid
- FieldChooser Tutorial
- NextGrid How To
- InputLine Tutorial
- Html Column Tutorial
- NextGrid Slide Style Tutorial
- Edit events in NextGrid
NextGrid
- NextGrid Quick Start
- Graphic Column Tutorial
- Optimize NextGrid
- Custom Draw in NextGrid
- VirtualColumn Tutorial
- NextGrid Custom Sorting
- TreeColumn Tutorial
NextDBGrid
NextInspector
- NextInspector Item Types
- NextInspector Quick Start
- NextInspector Advanced tutorial
- Map VCL property to item
NextSheet
NextCollection
- NxInfoPanel Tutorial
- NxOutlookBar Tutorial
- NxPathControl and NxNotebook tutorial
- NxPathControl Quick Start
- NxButton Tutorial
- NxFlipPanel and NxHeaderPanel Quick Start
- NxPageControl and NxNotebook Quick Start
Misc
- DateTime FormatMask
- NxComboBox styles
- NxPreview Quick Start
- Numeric FormatMask
- Enable typing unicode characters in InplaceEditors
- 32bit Bitmaps Tutorial
Labs
NxComboBox styles
Related Articles:
Info
- Skill:
- Version: 1.0.1
- Authod: Wim van der Vegt
- Created:
- Updated: 2008-04-30
Downloads
These three new styles do not allow editing of the text just like the dsDropDownList style.
What makes them different from the dsDropDownList style is that they use the Name=Value feature of TStrings.
Example:
clBlue=Blue clGreen=Green clYellow=Yellow
Both dmNameList and dmValueList are ment to implement lookup functionality with an NxComboBox.
| Name | Meaning |
|---|---|
| dmNameList | Displays the Names array of Items property. |
| dmValueList | Displays the Values array of the Items property. |
Both these lists styles let you retrieve the Name and Value of the chosen item through two new properties called ItemName and ItemValue.

Figure 1: Example of the dmNameList style.

Figure 2: Example of the dmValueList style.
The last new NxComboBox style called dmIdentList expects a numericall Name part of the Name=Value pairs and uses the Name part as Ident level for the NxComboBox Items. The result is that a simple tree-like structure is shown in the DropDownList.
The ItemName returns the IdentLevel of the chosen item and ItemValue returns the chosen item without leading spaces.

Figure 3: Example of the dmIdentList.
Notes:
1. The ItemValue and ItemName are undefined for the dsDropDown and dsDropDownList styles.
2. The results are also undefined for duplicate names just like the behaviour of the TString implementation.
Comments
2008-04-30 06:54:53
Not working with current version (20.04.2008)
2008-04-30 07:10:08
Hello,
Some things have changed since article have originally posted. We will update it now.
Also, it seems to all work fine. Don't forget that in Items property set something like this
APL=Apple
MS=Microsoft
GO=Google
and then set DisplayMode not Style to dmNameList, dmValueList...
UPDATE: Article updated
Best regards
Some things have changed since article have originally posted. We will update it now.
Also, it seems to all work fine. Don't forget that in Items property set something like this
APL=Apple
MS=Microsoft
GO=Google
and then set DisplayMode not Style to dmNameList, dmValueList...
UPDATE: Article updated
Best regards
2008-06-15 12:27:19
This is a helpful article. But the description of the "dmIndentList" wasn't very clear to me at first read, untill I actually tried a little bit myself.
So I guess this article might be more clearer if you could put a little more writing about dmIndentList.
In all, nice work!
So I guess this article might be more clearer if you could put a little more writing about dmIndentList.
In all, nice work!