Redesign of CtlsProgress

From: cpc <"cpc">
Date: Mon, 8 Dec 2003 22:32:16 +0100

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

Dear BlackBox Users,

several weeks ago Mr. René A. Krywult posted a mail via the BlackBox list.
He suppose some improvement for progress bar and he decided to correct the
following problem:

> I needed a progress bar, and naturally, I found CtlsProgress.

> When I wanted to use it, however, I found out that CtlsProgress does not
get its
> information from a linked variable, but only when selected, via a kind of
property
> window. This seems an unnatural way to do it, since usually one wants to
demonstrate
> the progress of a long running command via a progress bar, and therefore
the link
> between program and progress view should be the usual variable - control
concept,
> and not dependant on user interaction (selecting a view).

Known bugs of his new implementations:

> 1. If you copy a progress bar, link and label properties are not copied,
but the values
> v.cur, v.min and v.max are copied, giving the erroneous impression that
the new progress
> bar is linked.
>
> 2. If there are more than 1 bars linked to the same variable, only one of
them is
> updated, if values change. This, I think, is due to the handling of the
UpdateMsg,
> which is consumed after reception, and therefore not passed on.
>
> 3. If v is not changed through a program, but through a field control,
then the
> progress bar is only updated after the field control is closed. I don't
know why,
> but I'll find out.

I redesign the module CtlsProgress completely. All above limitations does
not exist any longer. Now you link a integer variable to one or several
progress bars. You can copy the progress bar. All progress bars are updated
concurrently. You can use it as sliders too.

Today I uploaded the subsystem Ctls to CPC at www.zinnamturm.de .

Of course the improved version is for BlackBox 1.4 only. For all users of
BlackBox 1.3 I recommend to update BlackBox to 1.4. There are a lot of
improvements. It is really better. You save a lot of time and you need not
to translate CtlsProgress back to 1.3.

Regards

Helmut Zinn


P.S.: Thank you very much to Mr. René A. Krywult. Without his mail the new
version of CtlsProgress does not exist. Open Source is the best way to
improve the software.

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-691631554_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBEZWFyIEJsYWNrQm94IFVzZXJz
LFxwYXINClxwYXINCnNldmVyYWwgd2Vla3MgYWdvIE1yLiBSZW5cJ2U5IEEuIEtyeXd1bHQgcG9z
dGVkIGEgbWFpbCB2aWEgdGhlIEJsYWNrQm94IGxpc3QuXHBhcg0KSGUgc3VwcG9zZSBzb21lIGlt
cHJvdmVtZW50IGZvciBwcm9ncmVzcyBiYXIgYW5kIGhlIGRlY2lkZWQgdG8gY29ycmVjdCB0aGVc
cGFyDQpmb2xsb3dpbmcgcHJvYmxlbTpccGFyDQpccGFyDQo+IEkgbmVlZGVkIGEgcHJvZ3Jlc3Mg
YmFyLCBhbmQgbmF0dXJhbGx5LCBJIGZvdW5kIEN0bHNQcm9ncmVzcy5ccGFyDQpccGFyDQo+IFdo
ZW4gSSB3YW50ZWQgdG8gdXNlIGl0LCBob3dldmVyLCBJIGZvdW5kIG91dCB0aGF0IEN0bHNQcm9n
cmVzcyBkb2VzIG5vdFxwYXINCmdldC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---
Received on Mon Dec 08 2003 - 22:32:16 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:00 UTC