ApplicationField默认就是这样的处理行为,如想改变这种行为需要我们根据自己的情况来设置InputPosition的值:
- private void textControl1_InputPositionChanged(object sender, EventArgs e)
- {
- ApplicationField field = textControl1.ApplicationFields.GetItem();
- if (field != null && field.TypeName.Equals("FORMDROPDOWN"))
- {
- if ((textControl1.InputPosition.TextPosition - field.Start + 1) == field.Length)
- {
- textControl1.InputPosition = new TXTextControl.InputPosition(
- field.Start + field.Length - 1,
- TXTextControl.TextFieldPosition.OutsideTextField);
- }
- }
- }
复制代码 |