Property PropertiesClassName(aClassName:String) (W)
Description
Use this property to specify the name of the editor class. After specifying this name you can access the properties belonging to the editor class via the properties property.
Remarks
The formal parameter of this property is case sensitive!
See PropertyClassNames for all available classnames.
For the Isah specific classnames the most important properties are documented below:
Use a TIsahGRidButton to implement a lookup.
Assign a name of a sub routine to the columns(i).properties.OnIsahButtonClick event.
Implement a lookup in this sub routine to set the field value for this particular column. The lookup is activated by by double clicking or via the keyboard.
You can also use a programcode for the lookup by assigning the programcode to the lookuptag property. However, this works only if the TIsahDBGrid object is used on a TEditForm or TProcessForm.
Code Snippet
columnPartGrpCode.PropertiesClassName =
"TIsahGridButtonEditProperties"
columnPartGrpCode.Properties.OnIsahButtonClick =
"PartGrpCodeLookup"
columnPartGrpCode.Properties.LookupTag =
410000
Sub
PartGrpCodeLookup(Column)
lookupValue = Column.Field.asString
Column.Field.asString = Lookup(
"Select PartGrpCode, Description From T_PartGrp Where PartGrpCode <> ''"
_
,
"Selecteer"
,
"PartGrpCode"
,
"PartGrpCode"
,
"PartGrpCode"
, lookupValue)
End Sub
Shows a Isah calculator with a button in case of databinding to a IsahFloatField.
Shows a Isah calculator without a button in case of databinding to a IsahIntegerField.
Editor to show and select a date value.
Boolean field editor.
A mask editor for string fields. The editmask property can be set to define a string mask.
Detailed information about edit masks can be found in Mask edits.
Code Snippet
columnDescription.PropertiesClassName =
"TIsahGridMaskEditProperties"
'columnDescription.Properties.EditMask = "\d+"
'columnDescription.Properties.MaskKind = 2 '1 = Standard, 2 = RegExpr, 3 = RegExprEx (with auto complete)
rem some example masks"
rem telephone number "(000)_000-0000;0;*"
rem auto completion ' "\w+' 'like' '\w+' 'apples!"
rem letters only '[a-zA-Z]+'
rem decimals only '\d+'
rem Editor specific properties:
'columnDescription.Properties.CharCase = 1
'columnDescription.Properties.ReadOnly = 0
'columnDescription.Properties.MaxLength = 12
'columnDescription.Properties.PassWordChar = "*"
' columnDescription.Properties.EchoMode = 2
Shows an IsahTimeEditor. It has to be bound to a IsahFloatField. Do not use this editor for editing the LastUpdatedOn field (this field uses a specific Sybase@ time format). See the IsahField objects topic for the IsahFloatField properties to be set.