![]() | Name | Value | Description | ||
| ReadOnly | 0 | Read only editor. | |||
| EditType | 1 |
The editor supports the options like:
The following sample adds an editor of edit type: With XMLGrid1
With .Editors
.Add "Edit", EXMLGRIDLibCtl.EditTypeEnum.EditType
End With
End With
| |||
| DropDownType | 2 |
The following sample adds an editor of drop down type: With XMLGrid1
With .Editors
With .Add("DropDownType", EXMLGRIDLibCtl.EditTypeEnum.DropDownType)
.AddItem 0, "DHL"
.AddItem 1, "Federal Express"
.AddItem 2, "Speedy Express"
End With
End With
End With
| |||
| DropDownListType | 3 |
It provides an intuitive interface for your users to select values from pre-defined lists presented in a drop-down window. The DropDownListType editor has no standard edit field associated. Use AddItem method to add predefined values to the drop down list. The DropDownRows property specifies the maximum number of visible rows into the drop down list. The item's icon is also displayed if it exists. The following sample adds a drop down list editor: With XMLGrid1
With .Editors
With .Add("DropDownListType", EXMLGRIDLibCtl.EditTypeEnum.DropDownListType)
.AddItem 0, "DHL"
.AddItem 1, "Federal Express"
.AddItem 2, "Speedy Express"
End With
End With
End With
The editor supports the following options:
| |||
| SpinType | 4 |
The SpinType allows your users to view and change numeric values using a
familiar up/down button (spin control) combination. The AddItem
method has no effect, if the EditType is Spin. Use the exSpinStep option to
specify the proposed change when user clicks the spin.
The following sample adds a spin type editor: With XMLGrid1
With .Editors
With .Add("Spin", EXMLGRIDLibCtl.EditTypeEnum.SpinType)
.Option(exSpinStep) = 10
End With
End With
End With
| |||
| MemoType | 5 |
The MemoType is designed to provide a unique and intuitive interface, which you
can implement within your application to assist users in working with textual
information. If all information does not fit within the edit box, the window of
the editor is enlarged. The AddItem
method has no effect, if the EditType is Memo.
The following sample adds a memo type editor: With XMLGrid1
With .Editors
With .Add("Memo", EXMLGRIDLibCtl.EditTypeEnum.MemoType)
.Appearance = SingleApp
End With
End With
End With
| |||
| CheckListType | 6 |
The following sample adds a check list type editor: With XMLGrid1
With .Editors
With .Add("CheckList", EXMLGRIDLibCtl.EditTypeEnum.CheckListType)
.AddItem &H10, "adFldFixed", 4
.AddItem &H20, "adFldIsNullable", 7
.AddItem &H80, "adFldLong", 9
.AddItem &H40, "adFldMayBeNull", 10
.AddItem &H2, "adFldMayDefer", 3
.AddItem &H100, "adFldRowID", 5
.AddItem &H200, "adFldRowVersion", 6
.AddItem &H8, "adFldUnknownUpdatable", 7
.AddItem &H4, "adFldUpdatable", 8
End With
End With
End With
| |||
| DateType | 7 |
The following sample adds a date editor: With XMLGrid1
With .Editors
With .Add("Date", EXMLGRIDLibCtl.EditTypeEnum.DateType)
.Option(exDateMarkToday) = True
End With
End With
End With
| |||
| MaskType | 8 |
You can use the MaskType to enter any data that includes
literals and requires a mask to filter characters during data input. You can use
this control to control the entry of many types of formatted information such as
telephone numbers, social security numbers, IP addresses, license keys etc. The Mask
property specifies the editor's mask. The MaskChar
property specifies the masking character. The AddItem
method has no effect, if the EditType is MaskType. The Mask property can use
one or more literals: #,x,X,A,?<,>,*,\,{nMin,nMax},[...].
The following sample adds a phone mask editor: With XMLGrid1
With .Editors
With .Add("Phone", EXMLGRIDLibCtl.EditTypeEnum.MaskType)
.Mask = "(###) ### - ####"
End With
End With
End With
| |||
| ColorType | 9 |
The following simple adds a color type editor: With XMLGrid1
With .Editors
With .Add("Color", EXMLGRIDLibCtl.EditTypeEnum.ColorType)
.Option(exColorShowSystem) = True
End With
End With
End With
| |||
| FontType | 10 |
The following sample adds a Font type editor: With XMLGrid1
With .Editors
.Add "Font", EXMLGRIDLibCtl.EditTypeEnum.FontType
End With
End With
| |||
| PictureType | 11 |
The following sample adds a picture type editor: With XMLGrid1
With .Editors
.Add "Picture", EXMLGRIDLibCtl.EditTypeEnum.PictureType
End With
End With
| |||
| ButtonType | 12 |
The ButtonType editor consists into a standard edit field and a "..."
button. The ButtonClick event is
fired if the user has clicked the button. The AddItem
method has no effect, if the EditType is ButtonType. Of course, you can apply
for multiple buttons using the AddButton
method. This is valid no matter for what type of the editor is.
The following sample adds two button editors: With XMLGrid1
With .Editors
.Add "Button", EXMLGRIDLibCtl.EditTypeEnum.ButtonType
With .Add("Button2", EXMLGRIDLibCtl.EditTypeEnum.EditType)
.AddButton "A", 1, 0
.AddButton "B", 2, 2
End With
End With
End With
| |||
| ProgressBarType | 13 | Displays the node's value using a progress bar control. | |||
| PickEditType | 14 | It provides an intuitive interface for your users to select values from pre-defined lists presented in a drop-down window. The PickEditType editor has a standard edit field associated, that useful for searching items. The DropDownRows property specifies the maximum number of visible rows into the drop=down list. Use AddItem method to add predefined values to the drop down list. The item's icon is also displayed if it exists. | |||
| LinkEditType | 15 | The LinkEditType control allows your application to edit and display hyperlink addresses. | |||
| UserEditorType | 16 | The control is able to use ActiveX controls as a built-in editor. The control uses the UserEditor property to define the user control. If it succeeded the UserEditorObject property retrieves the newly created object. Events like: UserEditOpen, UserEditClose and UserEditorOleEvent are fired when the control uses custom editors. | |||
| ColorListType | 17 |
| |||
| MemoDropDownType | 18 |
The AddItem method has no effect, if the EditType is MemoDropDownType.
| |||
| SliderType | 19 |
Adds a
slider control to a node. Use the exSliderWidth,
exSliderStep, exSliderMin, exSliderMax options to control the slider
properties. Use the exSpinStep option to hide
the spin control.
| |||
| CalculatorType | 20 |
Adds a drop down calculator to a
node. Use the exCalcExecuteKeys,
exCalcCannotDivideByZero, exCalcButtonWidth,
exCalcButtonHeight, exCalcButtons, exCalcPictureUp, exCalcPictureDown to
specify different options for calculator editor.
|