<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello,<br>I have a distance that can be set either as an absolute value or relative to the dataset extents. How may I specify a control on the valid values either in the range [0, min extent] or in the range [0, 1], depending on which unit has been chosen?<br><br> <IntVectorProperty name="DistanceUnit" label="Distance Unit" command="SetDistanceUnit" number_of_elements="1" default_values="2"><br> <EnumerationDomain name="enum"><br> <Entry value="0" text="Absolute"/><br> <Entry value="1" text="Relative"/><br> </EnumerationDomain><br> <Documentation><br> This property indicates the unit for specifying the distance. The Absolute (0) unit is the real distance. The Relative (1) unit means a percentage of the minimum dataset's spatial extent (hence it must be in the range [0, 1]).<br> </Documentation><br> </IntVectorProperty><br><br> <DoubleVectorProperty name="Distance" label="Distance" command="SetDistance" number_of_elements="1" default_values="0.1"><br> <BoundsDomain name="bounds" mode="scaled_extent" scale_factor="0.5"><br> <RequiredProperties><br> <Property name="Input" function="Input"/><br> </RequiredProperties><br> </BoundsDomain><br> <Documentation><br> The value of this property specifies the distance.<br> </Documentation> <br> </DoubleVectorProperty><br><br><br><br /><hr />Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. <a href='http://www.windowslive.fr/hotmail/default.asp' target='_new'> Créez un compte Hotmail gratuitement !</a></body>
</html>