PropertyType Meta-Tag

See Also: Class Member Meta-Data Tags

 

Purpose

Used to assign a pre-defined meaning to the property.

Applies To

Properties, Procedures and Functions

Syntax

 

{ PropertyType={Predefined Property Type} }

where {Predefined Property Type}

can be one of:

Note: An enumeration list must be supplied in order for the <Color Selector...> to display.

 

Use

This is used to assign a pre-defined meaning to the property.

Example:

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