AW: AW: Updating a text window

From: Zinn, Helmut <"Zinn,>
Date: Tue, 23 Oct 2007 11:58:37 +0200


Dear Marco

 

Thank you very much for the quick help.

 

Here is the solution of my problem:

 

            PROCEDURE Flush* (VAR fm: TextMappers.Formatter);

                        VAR

                                   md: TextModels.Model;

            BEGIN

                        md := fm.rider.Base();

                        Views.RestoreDomain(md.Domain());

                        TextViews.ShowRange(md, md.Length(), md.Length(), TextViews.any);

            END Flush;

 

Just a few lines and everything are works as expected.

 

Regards

 

Helmut Zinn

 

  _____

Von: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
Gesendet: Montag, 22. Oktober 2007 20:54
An: BLACKBOX{([at]})nowhere.xy
Betreff: Re: AW: Updating a text window

 

True!
    TextViews.ShowRange
(cf. StdLog.Ln)
mc

Helmut Zinn wrote:

Dear Marco

 

Yes, you are right. The procedure Views.RestoreDomain(md.Domain()) solves the 1st part of my problem.

Now the windows is updated but not scrolled to the last written line after the first page is filled.

 

Regards

 

Helmut Zinn

 

  _____

Von: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
Gesendet: Montag, 22. Oktober 2007 17:35
An: BLACKBOX{([at]})nowhere.xy
Betreff: Re: Updating a text window

 

Hello Helmut
I guess you are looking for
    Views.RestoreDomain(text.Domain());
(cf. StdLog.Flush)

Best regards
Marco


Zinn, Helmut wrote:

Dear BlackBox users,

while you work with BlackBox you certainly know the procedure Dialog.Update for updating forms.

Is there a similar procedure available for TextMappers.Formatter (or TextViews or TextModels) ?

Some background information:

I wrote a module, which writes its output to an open (displayed) window via the TextMappers.Formatter inside a loop.

The output window is empty until this program is terminated. I can’t read the result immediately during the program is running.

I would like to insert a call something like “Dialog.Update” or “Dialog.ShowStatus” at the end of the loop before it repeats the next step thru that loop.

Thank you for your help.

Regards

Helmut Zinn

 

---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy


---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy






Received on Tue Oct 23 2007 - 11:58:37 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:14 UTC