Problem with "Noting-Progress" macro 
Author Message
 Problem with "Noting-Progress" macro

I'm using the DUIM "noting-progress" macro to set a "completion bar" on
the status-bar of a frame. Everythings works great - the first
execution. The "completion bar" updates nicely and everything. But when
if invoke the method that contains the "noting-progress" the second
time, the "completion" bar does nothing - no display - do update.

I'm assuming that there is something that I need to "reset" but I don't
know what that is. Has anyone used this macro where it's been invoked
several times? What's the trick?

Here's what the code looks like where I'm using it:
--------------------------------------------------------------------
  pane encode-file-button (frame)
    make(<button>, label: "Encode File",
                   activate-callback: method(button)

                                        let status-bar =
frame-status-bar(frame);
                                        let ifile =
frame.input-file-field.gadget-value;
                                        let ofile =
frame.output-file-field.gadget-value;

                                        // setup a progress pop-up
                                        noting-progress(frame,
"Encoding")
                                          encode-file
(frame.enigma-machine,
                                                       input-file:
ifile,
                                                       output-file:
ofile);
                                        end;

                                        gadget-label(status-bar) :=
"done";

                                      end);
--------------------------------------------------------------------

Inside the "encode-file" is a call to "note-progress" that updates the
"completion-bar".

Thanks,

Ron Franke-Polz
Principal Systems Engineer
Honeywell-Measurex



Mon, 17 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Looking for "Percent Progress" widget

2. No Ada work, try "Notes"

3. string.join(["Tk 4.2p2", "Python 1.4", "Win32", "free"], "for")

4. Manual describing MACRO "Concept 14"

5. About ''"CooL": low-level macros considered useful

6. the "loop" macro

7. (COMPILE-FILE "MACRO")

8. "Serialization" in macro expansion

9. A CL iteration macro, "while".

10. BEGIN{want[]={"s1o", "s2o", "s2q", "s3q"}

11. Parsing ""D""?

12. "Fifth", "Forth", zai nar?

 

 
Powered by phpBB® Forum Software