enterPoint - hiCreatePointField

Discussion in 'Cadence' started by Arnold, May 6, 2004.

  1. Arnold

    Arnold Guest

    Hi

    I have a form in which I have two fields called AeStartPointField and
    AeGetCursorPointField.

    AeStartPointField= hiCreatePointField(
    ?name 'AeStartPointField
    ?promt "startPoint"
    ?value list(0.0 0.0)
    ?callback "println(\"scale changed\")
    ?editable t
    )

    AimGetcursorpointField = hiCreateButton(
    ?name "AimGetCursorPointField"
    ?buttonText "getPoint"
    ?callback "AeGetPoint()"
    )

    procedure(AeGetPoint()
    let((helpVar)
    helpVar=enterPoint(?prompts list("Enter Point") ?doneProc "")
    AeStartPointField->value=helpVar
    )
    )

    I want now to change the value of the "startPoint" with the procedure "AeGetPoint"

    I works, but the new value is not displayed in the form.

    What can I do to display it ? I did not find a refresh function or something else.

    CU

    Arny
     
    Arnold, May 6, 2004
    #1
  2. Arnold

    Guest Guest

    Arny,

    Changing AeStartPointField->value only changes the value in the prototype
    field created by hiCreatePointField, it does not change the value of the
    field instantiated in the form.

    You need to modify that value by referencing the field in the form:

    FormName->AeStartPointField->value

    You also need to do this when accessing the value, since
    AeStartPointField->value will not change when the value of the field within
    the form changes.

    -Pete Zakel
    ()

    "Do not abuse the crocodile's offspring until you are out of the river."

    -cunning Nigerian proverb
     
    Guest, May 6, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.