Difference between revisions of "New Component Features"
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <sidebar>Sidebar: Flowcode Help Overview:ComponentCreation</sidebar> | |
Flowcode version 7.2 brought improved component creation features to simplify the task of creating new components. | Flowcode version 7.2 brought improved component creation features to simplify the task of creating new components. | ||
− | === | + | ==Exposing Properties== |
+ | |||
+ | ===Selecting Properties=== | ||
Any properties of sub-components you wish to expose to the user via your component can now be easily done by right clicking the property you wish to bring through and selecting expose from the menu. | Any properties of sub-components you wish to expose to the user via your component can now be easily done by right clicking the property you wish to bring through and selecting expose from the menu. | ||
Line 20: | Line 22: | ||
[[File:PropPanel2.jpg]] | [[File:PropPanel2.jpg]] | ||
+ | |||
+ | ===Organising Properties=== | ||
You can create new categories to help organise the exposed properties. | You can create new categories to help organise the exposed properties. | ||
Line 26: | Line 30: | ||
− | Note that some components such as the SPI master has hidden properties such as re-mappable pins which are useful to bring through to the user. | + | ===Hidden Properties=== |
+ | |||
+ | Note that some components such as the UART or SPI master has hidden properties such as re-mappable pins which are useful to bring through to the user if they are using a target device that requires them. | ||
To see all the hidden properties use the View -> Component Debugger menu item. | To see all the hidden properties use the View -> Component Debugger menu item. | ||
Line 43: | Line 49: | ||
− | === | + | ==Exposing Macros== |
+ | |||
+ | ===Selecting Macros=== | ||
As well as being able to expose properties to the user, you can also expose macros to allow the component macros nested inside your component to be available to the user. | As well as being able to expose properties to the user, you can also expose macros to allow the component macros nested inside your component to be available to the user. | ||
Line 50: | Line 58: | ||
− | + | Exposed macros are also automatically set to be available in the Interface manager which is now available from the File -> Component Configuration menu | |
− | [[File: | + | [[File:IntMgr.jpg]] |
− | + | Any macros you have exposed or created for your component and set to be publicly available can be seen from the Macros tab of the properties window. | |
− | [[File: | + | [[File:PropMacros.jpg]] |
Latest revision as of 16:24, 3 March 2017
<sidebar>Sidebar: Flowcode Help Overview:ComponentCreation</sidebar>
Flowcode version 7.2 brought improved component creation features to simplify the task of creating new components.
Contents
Exposing Properties
Selecting Properties
Any properties of sub-components you wish to expose to the user via your component can now be easily done by right clicking the property you wish to bring through and selecting expose from the menu.
You can see which property items will be available to the user by left clicking on a blank area of the panel or by choosing Panel from the drop down menu at the top of the properties window.
Typical properties you might wish to bring through include pin connections, communications channel, user adjustable configuration parameters, or anything else you want the user of your component to be able to access.
Organising Properties
You can create new categories to help organise the exposed properties.
Hidden Properties
Note that some components such as the UART or SPI master has hidden properties such as re-mappable pins which are useful to bring through to the user if they are using a target device that requires them.
To see all the hidden properties use the View -> Component Debugger menu item.
In the Component Debugger window click the "Expose Full Component Tree In Property Pane" check box.
When you next select your component all of the hidden properties will become visible allowing you to expose them to the user.
Note: Remember to un-tick the "Expose Full Component Tree In Property Pane" check box when you're done exposing hidden properties.
Exposing Macros
Selecting Macros
As well as being able to expose properties to the user, you can also expose macros to allow the component macros nested inside your component to be available to the user.
Exposed macros are also automatically set to be available in the Interface manager which is now available from the File -> Component Configuration menu
Any macros you have exposed or created for your component and set to be publicly available can be seen from the Macros tab of the properties window.