Difference between revisions of "Creating a Property"
Line 22: | Line 22: | ||
The 'Visible' check box decides if the property is available for the user to see and the 'Writable' check box decides if the property can be seen or changed by the user. Note that a property cannot be moved or edited if either of these check boxes are ticked. | The 'Visible' check box decides if the property is available for the user to see and the 'Writable' check box decides if the property can be seen or changed by the user. Note that a property cannot be moved or edited if either of these check boxes are ticked. | ||
+ | |||
Revision as of 10:54, 30 August 2013
When a component on the panel is selected the Properties Panel window will be populated with properties associated with that component to allow you to configure the component to your requirements.
When creating a program or a component you may wish to add your own properties to allow you to either simply switch some code in or out of the program or to control a specific feature within your code.
Properties can only be added to the root so to begin you must either click on an empty area of the Dasboard or System Panel, or select the 'Panel' from the drop down menu at the top of the Properties Panel.
Clicking the drop down menu next to 'Properties' on the panel properties window will bring up the menu shown above.
The Add new item allows a property to be created and pops up the dialogue window below.
Creating Properties
The 'Cosmetic name' is the name label that is shown to the user by the side of the property.
The 'Property type' selects what data can be represented by the property.
The 'Property variable' gives us a reference to the property value for use in our program.
The 'Visible' check box decides if the property is available for the user to see and the 'Writable' check box decides if the property can be seen or changed by the user. Note that a property cannot be moved or edited if either of these check boxes are ticked.
Property Type
Here is a list of different property types that can be added and the data that they represent.
|
File:CreatingPropertiesPropTypes.jpg |
Editing Properties
The property can be edited by right clicking on the property and selecting edit.
The new category item allows a property folder to be created to house a set of related properties and provide a bit more structure.
File:CreatingPropertiesCatagory.jpg
The layout of any properties and categories you have added can be altered by simply left clicking and dragging the specific item up and down on the panel properties window.