So I am trying to add a GUI to the program that stresses servers. I have the basic skeleton program written but i am stuck at the most important part, the GUI control. This is my first 'real' GUI and i'm open to LOTS of suggestions. Sorry for the long code but it works (windows)! I had this quazi working but I later found that the updates were just going on top of the original row and ran out of allowed elements. So here is what the program does:

Thread 1: Discovers systems and adds them to a queue to be processed
Thread 2: Finds details about the discovered systems and creates the XML structure for that system
Thread 3: Starts threaded tests from a queue populated by the GUI

GUI: Addes a row of info/buttons from Thread 2's queue. User can update the system info (real life must enter serial number before starting) and adjust test parameters. User will 'start' the system.

Problems:
When the ctr_1 button is clicked it should update the system status, disable user input for that system, start the test, not too hard but need the correct way. ctr_1 and 2 buttons change values/state on this action. Later user can pause/cancel(stop) a test.

#hardest problem
When a test is complete it needs to update the GUI with the progress. If the system state changes from 'running' (executing tests) to 'paused' or 'stopped' the ctr_1 and 2 buttons should change state/values to reflect this change.

I cannot save the row of GUI objects to the system's XML data. Making updating difficult.

I hope there is somebody that understands what i am trying to do... this does work when it was done wrong!
perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x64-multi-thread


In reply to Advanced GUI with threads -working by glenn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.