I try to execute the procedure:
{
String s = ((TNxComboBoxItem*)NxInsp->Items->Item[1])->ItemValue;
ShowMessage("((TNxComboBoxItem*)NxInsp->Items->Item[1])->ItemValue="+s);
}
The result is a string starting from the second character. For example, it was selected "qwerty", the result will be "werty"
I think that does not properly function: TNxComboBoxItem.GetValueFromIndex (), may be I am wrong ...
Help me, please!
P.S.:
Properties for TNextInspector:
Left = 0
Top = 0
Width = 321
Height = 491
Align = alClient
Style = psOffice2007
TabOrder = 0
object NxTextItem1: TNxTextItem
Caption = 'TextItem'
Color = clWindow
ReadOnly = True
ParentIndex = -1
object NxComboBoxItem1: TNxComboBoxItem
Color = clWindow
OnCloseUp = NxComboBoxItem1CloseUp
Lines.Strings = (
'qwerty'
'asdfgh'
'zxcvbn')
ParentIndex = 0
end
end
end