Re: [BLACKBOX] Opening an embedded form view

From: [at]} <Robert>
Date: Mon, 14 Dec 2009 08:24:39 +0000

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

Douglas G. Danforth wrote:
> Robert, Antony, Josef,
>
> My first response to your code was, 'Yuk!, no way!'.
> Sorry that's just how I responded. I don't think it is necessary to
> use a model.

I don't know if (*you*) want a Model; it depends on what (*your*) View
does/contains. You said it contains a 'Graph'; I just surmised that a
Graph might be a Model.

As I indicated in my email not using a Model would simplfy my example (but not
by a lot, maybe by 4 1-line methods). The example certainly does not need a Model.


I gave a Model example as it is obvious how to simplify it if you don't want a
Model. Generalising a View only example to include a Model is less obvious.


I remember the 'Yuk' feeling when you first see so many routines. But each
routine is very short, and has a very simple task.

You still seem to be having problems maintaining state:

"Unfortunately I can't get your suggestion to work (yet).
"If I just open the form I don't get the right behavior.
"Things are not initialized properly.
"I still need to find the pointer in the form and then set all of
"its fields correctly.

The standard, and once used to it very simple, technique is to use the three
Methods Externalize, Internalize, & CopyFrom.


Robert


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1970842825_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIERvdWdsYXMgRy4gRGFuZm9ydGggd3J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by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:38 UTC