See Also: Class Member Meta-Data Tags
Used to assign a pre-defined meaning to the property.
Properties, Procedures and Functions
{ PropertyType={Predefined Property Type} }
where {Predefined Property Type}
can be one of:
Boolean: This can be applied to Integer data types where the property is only being used as a Boolean value. The Integer data type will exist for historical and compatibility reasons. When represented in the Object Properties Panel, value will be showln as a Boolean with a drop down True / False combobox instead of an integer.
Color: Color properties are modeled in a special way in the Studio – the Properties Panel lists <Color Selector...> as one of the possible choices, which, if selected, pops up a color dialog for choosing a custom color.
Note: An enumeration list must be supplied in order for the <Color Selector...> to display.
Anchors: Specifies that the property type is an anchor. Currently the Studio does nothing special with the setting.
FormDataType: Specifies that the property type is a control’s form_datatype. Currently the Studio does nothing special with the setting.
BorderStyle: Specifies that the property type is a border style. Currently the Studio does nothing special with the setting.
Image: This can be applied to string data types where the value is intended to be the file name of a bitmap (.bmp) or icon (.ico) file. When represented in the Object Properties panel a prompt button will appear next to the value when the value is being edited. Clicking the prompt button will activate the Image Selector dialog.
ImageEx: Same as the Image PropertyType except ImageEx is for properties that also support .gif and .jpg file types.
This is used to assign a pre-defined meaning to the property.
This sample code shows how to indicate that property piShapeColor is of PropertyType Color. This means that the Studio Properties Panel lists <Color Selector...> as one of the possible choices for this property, which, if selected, pops up a color dialog for choosing a custom color. In addition, this sample shows how to define an enumerated list of predefined colors as possible values for piShapeColor, and how to specify that piShapeColor should be listed in the Studio Properties Panel under Category Appearance.
Class cShape is a cObject
Procedure Construct_Object
Forward Send Construct_Object
{ PropertyType=Color }
{ EnumList= "clScrollBar, clBackground, clActiveCaption, clInactiveCaption, clMenu, clWindow" }
{ EnumList+="clWindowFrame, clMenuText, clWindowText, clCaptionText, clActiveBorder" }
{ EnumList+="clInactiveBorder, clAppWorkSpace, clHighlight, clHighlightText, clBtnFace" }
{ EnumList+="clBtnShadow, clGrayText, clBtnText, clInactiveCaptionText, clBtnHighlight" }
{ EnumList+="cl3DDkShadow, cl3DLight, clInfoText, clInfoBk, clDefault, clNone" }
{ EnumList+="clAqua, clBlack, clBlue, clDkGray, clFuchsia, clGray, clGreen, clLime, clLtGray" }
{ EnumList+="clMaroon, clNavy, clOlive, clPurple, clRed, clSilver, clTeal, clWhite, clYellow" }
{ Category=Appearance }
Property Integer piShapeColor clNone
End_Procedure
End_Class
This next sample shows how an Integer property can be treated as a Boolean within the Object Property Panel.
{ PropertyType=Boolean }
Property Integer Status_Panel_State True