Home > Community > Forums > PCB SKILL > axlForm/axlMeter display during process

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 axlForm/axlMeter display during process 

Last post Mon, Nov 12 2007 3:44 AM by archive. 7 replies.
Started by archive 12 Nov 2007 03:44 AM. Topic has 7 replies and 2001 views
Page 1 of 1 (8 items)
Sort Posts:
  • Mon, Nov 12 2007 3:44 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    axlForm/axlMeter display during process Reply

    Hello All.

    I have a form with fixed texts and texts that are updated during the process.
    During the process, only updated texts are displayed, fixed ones are only displayed at the en of the process.
    Is there a way to fix this problem?

    Thanks.


    Originally posted in cdnusers.org by willbi
    • Post Points: 0
  • Mon, Nov 12 2007 11:27 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: axlForm/axlMeter display during process Reply

    Hi,

    If I understand your problem correctly, you are probably setting your field values after you run the axlFormDisplay command. Try setting the values begore running axlFormDisplay.

    Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
  • Tue, Nov 13 2007 1:00 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: axlForm/axlMeter display during process Reply

    Hello Dave.

    Yes. I define the form by writting a file and display it. Then the routine check each compdef and display informations about them on the form with axlFormSetInfo.


    Originally posted in cdnusers.org by willbi
    • Post Points: 0
  • Tue, Nov 13 2007 1:42 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: axlForm/axlMeter display during process Reply


    I tried to add a progress bar to this form:
    The form is written on the disk.
    It is loaded with:
    fabForm=axlFormCreate( (gensym) "./fabForm.form" '(e outer) 'fabForm_Action t)

    Then it is displayed.

    I defined a "bar" PROGRESS field:
    fprintf(fabForm "FIELD bar\n")
    fprintf(fabForm "FLOC 5 19\n")
    fprintf(fabForm "PROGRESS 50 4\n")
    fprintf(fabForm "ENDFIELD\n"
    I define a list:
    barList=list(1 length(l_comps) 0)
    axlFormSetField(fabForm "bar" barList )
    then I update it with for each compdef:
    barList=list(1 length(l_compdefs) cdnum)
    axlFormSetField(fabForm "bar" barList )
    Then the progress bar works inside the form. But with always the display problem. Updated texts and the bar are displayed.

    I tried with an axlMeter.
    I can't succeed to put the axlMeter inside the form, but if it runs outside the form, the form is totally and fully displayed (all texts, text borders...)
    I saw that axlMeter can update a progress in a form if this progress is named "bar". But the axlMeterCreate("", "", nil, "fabForm") creates a new form and update only the bar.I got two forms, one with updated texts and another one with the bar!!...
    If the axlMeter is opened outside then I get everything but 2 progress bars.
    And if I create the Meter and Destroy it, the form is well displayed but some texts are truncated....


    Originally posted in cdnusers.org by willbi
    • Post Points: 0
  • Tue, Nov 13 2007 5:34 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: axlForm/axlMeter display during process Reply

    Hi, Your form must be completely defined before you "create" it. So you can't add extra fields afterwards. The axlMeter inside a form does work. You should update the fields THEN display the form as the LAST thing your code does. Send me your full code if this doesn't help. Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
  • Wed, Nov 14 2007 2:25 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: axlForm/axlMeter display during process Reply

    Sorry Dave but surely I did not explain well, but i do not want to add fields at all.

    I define the form. It is written on the disk as a .form file, with all needed fields (even the progress bar).
    I create the form and display it.
    Then afterwards, I only update text with axlFormSetField.
    I do not want to add fields, just update those already defined..

    I display the form.
    I extract the job number.
    I update the job number field.
    then I extract components informations and update existing fields with each components property values.

    But during the process, fixed fields are not visible, all components fields are displayed and updated and when the routine finishes, the whole form is displayed. it was the same issue before I add the progress bar.

    on the attached picture:
    red ellipse: texts defined before the display
    green ellipse: texts updated during the process
    blue ellipse:text displayed at the end of the process


    Originally posted in cdnusers.org by willbi
    • Post Points: 0
  • Wed, Nov 14 2007 2:26 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: axlForm/axlMeter display during process Reply

    update: I only change field contents with axlFormSetInfo, not axlFormSetField...


    Originally posted in cdnusers.org by willbi
    • Post Points: 0
  • Wed, Nov 14 2007 11:34 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: axlForm/axlMeter display during process Reply

    Again... You should update the fields THEN display the form as the LAST thing your code does. Don't run axlFormDisplay until all the values have been set. Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
Page 1 of 1 (8 items)
Sort Posts:
Started by archive at 12 Nov 2007 03:44 AM. Topic has 7 replies.