How can I make a property for custom control?
Hello,
How can I make a property for custom control
with such requirements:
1. It should not be shown in Control's Property List;
2. It should be visible in Syntax Builder window, when you try to get its value.
For example: List control has property "alldataelements";
Thanks in Advance
How can I make a property for custom control
with such requirements:
1. It should not be shown in Control's Property List;
2. It should be visible in Syntax Builder window, when you try to get its value.
For example: List control has property "alldataelements";
Thanks in Advance
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answer from the company
-
Hi Sergey,
You need to add the DESIGN attribute, set to N to your property definition in your controls.xml file. For example:
< PROPERTY ATTRTYPE="General" CAPTION="Is active part selected?" CTRLTYPE="TEXT" REQUIRED="N" NM="ACTIVE" DESIGN="N" GET="active" />
The company says
this answers the question
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi Sergey,
You need to add the DESIGN attribute, set to N to your property definition in your controls.xml file. For example:
< PROPERTY ATTRTYPE="General" CAPTION="Is active part selected?" CTRLTYPE="TEXT" REQUIRED="N" NM="ACTIVE" DESIGN="N" GET="active" />
The company says
this answers the question
-
Inappropriate?Hi Tom,
I have tried it,
But it does not meet second requirement. -
Inappropriate?Sorry it looks like I missed a step. You also need to set the GET attribute property to the runtime name you want the property to have. Generally as a convention we set this to the same as the NM attribute but lower case.
< PROPERTY ATTRTYPE="General" CAPTION="Is active part selected?" CTRLTYPE="TEXT" REQUIRED="N" NM="ACTIVE" DESIGN="N" GET="active" />
-
This reply was removed on 10/05/09.
see the change log -
Inappropriate?I have tried it,
> PROPERTY NM="DATAGRID_XML" ATTRTYPE="General" CAPTION="Datagrid in string" CTRLTYPE="TEXT" SET="Y" GET="datagriddataxml" DESIGN="N" /<
But it does not meet second requirement again. -
Any chance you could email me a copy of the custom control so I can check it out Sergey? support@altio.com -
Inappropriate?I have sent it
-
Yes I got your email thanks Sergey. It looks like there is an error in your controls.xml in the custom control jar you sent me. The property definitions for your runtime properties are appearing outside of your properties node. The designer will ignore these elements unless they are inside the properties node. I'll email you the correction. -
Inappropriate?It is working now.
Thanks Tom!
Loading Profile...



EMPLOYEE