DrDeth
August 7th, 2007, 13:26
Hi all,
I'm busy looking at Templates - more specifically, templates created from genericcontrol.
In the 'common_templates.xml' file I see this:
<template name="checkbox">
<genericcontrol>
<stateicons>
<on>indicator_checkon</on>
<off>indicator_checkoff</off>
</stateicons>
<script file="scripts/template_checkbox.lua" />
</genericcontrol>
</template>
Its pretty self-explanatory when looked at in context, but when you compare it to the Reference Documentation, you start noticing the problem. In the documentation, genericcontrol only has two tags - icon, and iconcolor. Ahh, but it inherits from windowcontrol so it has a lot more, but neither genericcontrol nor windowcontrol contain the stateicons or script tags.
So, is it safe to assume that any tag not defined in the reference documentation is a custom property? If so, how does FG know what to do with it internally ???
Any help would be appreciated.
I'm busy looking at Templates - more specifically, templates created from genericcontrol.
In the 'common_templates.xml' file I see this:
<template name="checkbox">
<genericcontrol>
<stateicons>
<on>indicator_checkon</on>
<off>indicator_checkoff</off>
</stateicons>
<script file="scripts/template_checkbox.lua" />
</genericcontrol>
</template>
Its pretty self-explanatory when looked at in context, but when you compare it to the Reference Documentation, you start noticing the problem. In the documentation, genericcontrol only has two tags - icon, and iconcolor. Ahh, but it inherits from windowcontrol so it has a lot more, but neither genericcontrol nor windowcontrol contain the stateicons or script tags.
So, is it safe to assume that any tag not defined in the reference documentation is a custom property? If so, how does FG know what to do with it internally ???
Any help would be appreciated.