
A-14 Extensibility FAQ
A-14
problems.
4. How do I set default values for numeric input or text boxes?
Ans: Use the following procedure:
Make object references to the numeric input boxes in the
Initialize function and then set their defaults using the Value
property. For example,
The first line sets an object reference to the container calling
the extension unit operation. The second line sets hyEff as
an object reference to the eff real number variable in the
EDF. The Eff variable is the target moniker of a numeric input
widget. The third line determines if the unit operation is
being recalled from a saved case. If not, then the Value
property of hyEff is set to 0.50.
5. How do I create an Ignore This Unit Operation During
Calculations checkbox?
Ans: Use the following procedure:
a. Add a standard checkbox to the extension property view.
b. Double-click on the checkbox or right-click and select
Check Box Properties command.
c. Double-click the Target Moniker field or click the
Ellipsis icon directly beside it.
d. Select Object is Ignored in Calculations from the
Select Number Variable property view.
e. Change the text in the Label field to &Ignore Unit
Operation.
6. How do I create a Delete button?
Ans: Use the following procedure:
a. Add a standard button to the extension property view.
b. Double-click on the button widget or right-click and select
Button Properties command from the Object Inspect
menu.
c. Double-click the Message field or click the Ellipsis icon
directly beside it.
Set hyContainer = Container
Set hyEff = hyContainer.FindVariable("Eff").Variable
If IsRecalling = False Then hyEff.Value = ".50"
Komentáře k této Příručce