What about the views??

From: Hector <"Hector">
Date: Wed, 19 Mar 2003 19:50:26 +0100

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

Hello everybody. Good evening to all.

I have been working hard on my project and it is going ok (in a big part,
thanks to many of you), but I still have a couple of doubts in my mind. Can
anybody help me, please?. My questions are the following:

1.
How could I change the background color of a view?. I' ve tried changing the
"Ports. background" variable but, doing that, I changed the background of
all the opened views. I don't really want that. I only want to change the
color of the view were I am drawing my figures.

2.
Is there any color who is "transparent"?. I have tried the "Views.
transparent", but it really didn't worked very well. When I draw a figure as
"transparent" it apeared black (while the containing view had a white
background). I'd like to be able to draw a figure with the same colour as
the background, like an "erasing". Is that possible?.

Thank you in advance, HECTOR.

PS: To Renée Dorta, de la universidad de Carabobo.
(I'm going to try to answer a mail. Incredible!!!).

I agree with you that a v.Close() method would be useful sometimes, but...
What
if you close an embedded view?. I mean: Now I am pasting views (well...
controls, really) in an empty form. It wouldn't be a great idea to close
that control during the execution, don't you think?.

A friend of me had the same problem than you while he was doing his project.
He decided to keep a list of the views he had opened and the window that
contained them. When you open a view with the StdCmds. Open() command, you
can "catch" the window that contains your view, pointing to it with a
"Windows. Window" object. You will see that each window has a Close()
extensible method. I mean, you can do something like:

MyWindow = POINTER TO RECORD;
    view: Views. View;
    windowContaning: Windows. Window;
    next: MyWindow;
END;

And when you want to close it, you only have to make something like this:

"
PROCEDURE(e: Estructure) SearchView (v: Views. View): MyWindow"
[ . . . ]

PROCEDURE Test*;
VAR
    res: MyWindow;
BEGIN
    res := estruct. SearchView (viewToSearch);
    res. windowContaining. Close();
    estruct. Delete (res);
END Test
"

I hope I have helped in something.



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

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-1666904919_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBIZWxsbyBldmVyeWJvZHkuIEdv
b2QgZXZlbmluZyB0byBhbGwuXHBhcg0KXHBhcg0KSSBoYXZlIGJlZW4gd29ya2luZyBoYXJkIG9u
IG15IHByb2plY3QgYW5kIGl0IGlzIGdvaW5nIG9rIChpbiBhIGJpZyBwYXJ0LFxwYXINCnRoYW5r
cyB0byBtYW55IG9mIHlvdSksIGJ1dCBJIHN0aWxsIGhhdmUgYSBjb3VwbGUgb2YgZG91YnRzIGlu
IG15IG1pbmQuIENhblxwYXINCmFueWJvZHkgaGVscCBtZSwgcGxlYXNlPy4gTXkgcXVlc3Rpb25z
IGFyZSB0aGUgZm9sbG93aW5nOlxwYXINClxwYXINCjEuXHBhcg0KSG93IGNvdWxkIEkgY2hhbmdl
IHRoZSBiYWNrZ3JvdW5kIGNvbG9yIG9mIGEgdmlldz8uIEknIHZlIHRyaWVkIGNoYW5naW5nIHRo
ZVxwYXINCiJQb3J0cy4gYmFja2dyb3VuZCIgdmFyaWF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 06:29:24 UTC