- private void textControl1_TextFieldClicked(object sender, TXTextControl.TextFieldEventArgs e)
- {
- TXTextControl.ApplicationField appField = (TXTextControl.ApplicationField)e.TextField;
- FieldEditor editor = new FieldEditor();
- editor.SelectedField = appField;
- editor.UpdateField += new EventHandler(editor_UpdateField);
- editor.Cancel += new EventHandler(editor_Cancel);
- editor.SelectedField = textControl1.ApplicationFields.GetItem();
- Point tbLocation = new Point((appField.Bounds.Location.X -
- textControl1.ScrollLocation.X) / dpiX,
- (appField.Bounds.Location.Y -
- textControl1.ScrollLocation.Y) / dpiX);
- editor.Location = tbLocation;
- textControl1.Controls.Add(editor);
- editor.BringToFront();
- editor.Show();
- }
复制代码- Point tbLocation = new Point((appField.Bounds.Location.X -
- textControl1.ScrollLocation.X) / dpiX,
- (appField.Bounds.Location.Y -
- textControl1.ScrollLocation.Y) / dpiX);
复制代码 这一段用tx 14 怎么实现! |