Re: [BLACKBOX] LibFormatter feature

From: [at]} <Robert>
Date: Sat, 28 Mar 2009 11:50:12 +0000

----boundary-LibPST-iamunique-1757557784_-_-
Content-type: text/plain

Wojtek

Um, a feature!

I don't think it is really related to the way you clear the Log.

If it annoys you try:
- Open LibPlotters.
- Goto the line "PROCEDURE (lnk : XyLink) Log (txt : Str16), NEW;".
- Insert the line "fmtr.SetToEnd;"
- Let me know if this fixes it.

If I am right this is caused by having two (or more) Formatters (a LibFmtr is
just a wrapper around a TextMappers.Formatter) talking simultaneously to the
same Text; the poor little things can get confused!

In practice this only happens with the Log, so only to 'Development' style
programming. 'Production' type programs that open and control their own
Texts/Windows do not have this problem.

I keep the incidence of this problem to an acceptable (to me) level by
including the line "fmtr.SetToEnd" once at the start of each Command that uses
fmtr to write to the Log.

A 'safe' fix would be to include a call of SetToEnd inside (*every*) other Fmtr
method. This has always seemed to be very costly, so I have never been tempted
to do it.

I have not investigated how Oms handle this issue.

Robert


Wojtek Skulski wrote:
> Robert:
>
> I found a feature in LibFormatters. I am using old Lib, so maybe it was
> resolved.
>
> I invoked the Tool Bar in the Plotter, then put a cross on 1D plot,
> and the values were reported in Log. After a while I cleared
> Log by CTRL_A and <backspace>. From then on the Plotter did not
> show the numbers in Log.
>
> Then I executed Info -> Clear Log and from then on Plotter
> again behaved as it should: the numbers are being shown in Log.
>
> I am guassing that the end of the Log Text was somehow not updated
> when I cleared the Log "manually".
>
> I will remember to clear Log via the menu in future, but I am dutifully
> reporting the feature.
>
> W.
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.285 / Virus Database: 270.11.30/2026 - Release Date: 03/27/09 07:13:00
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1757557784_-_-
Content-type: application/rtf
Content-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dW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIg
dG8gXHBhcg0KPiBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQo+IFxwYXINCj4gXHBhcg0K
PiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS1ccGFyDQo+IFxwYXINCj4gXHBhcg0KPiBObyB2aXJ1cyBmb3VuZCBp
biB0aGlzIGluY29taW5nIG1lc3NhZ2UuXHBhcg0KPiBDaGVja2VkIGJ5IEFWRyAtIHd3dy5hdmcu
Y29tIFxwYXINCj4gVmVyc2lvbjogOC41LjI4NSAvIFZpcnVzIERhdGFiYXNlOiAyNzAuMTEuMzAv
MjAyNiAtIFJlbGVhc2UgRGF0ZTogMDMvMjcvMDkgMDc6MTM6MDBccGFyDQo+IFxwYXINClxwYXIN
ClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5
ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQp9
----boundary-LibPST-iamunique-1757557784_-_---
Received on Sat Mar 28 2009 - 12:50:12 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:48 UTC