How is a frame/view implemented?

From: [at]} <René>
Date: Sat, 01 Nov 2003 11:36:32 +0100

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

Hi there.

As far as I have understood, a view doesn't open a child window, if
displayed in a window, but the mapping directly uses a part of the
window dc. Can anyone confirm this?

At least that's what is implied by the Ogl-Subsystem and ObxBitmap.

This results in BitBlitting from a predefined dc to a part of the
window's dc. This seems ok for most usages, but a bit slow for
3D-graphic games.

So, I tried to do open a child window with the size of the view, using
f.rider(HostPorts.Rider).port.wnd as the parent window.

And though the child window was opened, it always was below the view
that was opened by StdCmds.PasteView, and though I did not implement
GetBackground, the view seemed not to be transparent at all = I didn't
see my child window.

Views.InstallFrame seems also no good, snice a child window has no
frame.

So, how would I go about this? The Ogl example seems not to be usable
with StdCmds.PasteView and StdCmds.Open, but implements its own Open
procedure that opens a new window. It is therefor an imperfect example
of a view (not usable as a
nested view).

Should I redefine a Frame for my view? What would need to be done?

I think that the source code of OleViews.NewObjectView would probably
answer these questions.

Rene
--------------------------------------------

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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2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gdGhlIGFkZHJlc3MsIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJl
ZCwgeW91ciBtZXNzYWdlIHdpbGwgYmUgbW9kZXJhdGVkIHRvIGF2b2lkIHNwYW0uIFBsZWFzZSB1
bmRlcnN0YW5kIHRoYXQgbW9kZXJhdGlvbiB3aWxsIG9mdGVuIGNhdXNlIHNvbWUgZGVsYXksIGlu
IHBhcnRpY3VsYXIgb3ZlciB3ZWVrZW5kcyBvciBob2x5ZGF5c319ALEEYCqhJdBhZ/cH


----boundary-LibPST-iamunique-31507629_-_---
Received on Sat Nov 01 2003 - 11:36:32 UTC

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