Modify Reusable Part Properties at Design Time
Posted: Fri Jun 30, 2017 6:01 am
Is it possible to have properties of a reusable part (VLWEB) show and be editable in the Details Properties window?
For example, here is a part that exposes a "MarginLeft" to set the margin left of its own controls.
When this component is dragged onto the design surface You can see the MarginLeft values out of place with the field in the component (OFOFID [Office Number] and OFOFIN [Office Name]).
This works really well and I can programmaticaly set the properties and everything works fine.
However, the properties don't show up in the Properties tab of the Details window.
Which means I cannot set them at design time and the design view is all weird even though the runtime view is fine.
Is there any way to make properties of a reusable part show up in the Properties Tab?
For example, here is a part that exposes a "MarginLeft" to set the margin left of its own controls.
Code: Select all
* ================================================================================
* PROPERTIES
* ================================================================================
define_pty name(MarginLeft) get(GetMarginLeft) set(SetMarginLeft) access(*PUBLIC) category(Other)
ptyroutine name(SetMarginLeft)
define_map for(*INPUT) class(#STD_INT) name(#margin)
#OFOFID.MarginLeft := #margin
#OFOFIN.MarginLeft := #margin
endroutine
ptyroutine name(GetMarginLeft)
define_map for(*OUTPUT) class(#STD_INT) name(#margin)
* just set it to something right now
#margin := 100
endroutine
When this component is dragged onto the design surface You can see the MarginLeft values out of place with the field in the component (OFOFID [Office Number] and OFOFIN [Office Name]).
This works really well and I can programmaticaly set the properties and everything works fine.
Code: Select all
#OfficeNumberLookupPanel.MarginLeft := 100
Is there any way to make properties of a reusable part show up in the Properties Tab?