[ALLY] Re: Redrawn Out
From: carl:pacific at: 7-Jan-2001 22:02
Ah, ok Mike... sorry for the intro stuff. Did not know what level you were
at. I'm not quite sure what you need... so let me know if this is it:
The "connection" between a model and a view is done one of two ways in View:
name the face (assign its object to a variable) or handle with it within the
pane list for its super-face. The former is easier, you provide a variable
set immediately before the face definition:
first-name: fld
Then, later you reference first-name with:
first-name/text: "new value"
show first-name
WRT Smalltalk MVC, I need to refresh my knowledge of dependent-fields...
been too long (1981-1986), although I still hear Dan Ingalls words about MVC
dependencies echoing in my head (he and most of the Smalltalk crew were in
my group at Apple). But, memory fades....
And, just to mention it, VID is only one of many styles of GUI dialects that
can be put onto REBOL. A dynamic model is possible... (so get busy coding!)
-Carl
----- Original Message -----
From: Mike Myers <[mike--myers--cybarite--com]>
To: <[ally-list--rebol--com]>
Sent: Sunday, January 07, 2001 6:05 AM
Subject: [ALLY] Re: Redrawn Out
> 1/6/01 9:24:03 AM, "Carl Sassenrath" <[carl--pacific--net]> wrote:
>
> >Hi Mike,
> >
> >I don't like thinking about how old those docs are, or in fact how old
view
> >is compared
> >to what we run these days in Link.
> >
> >If I understand correctly, you want to display the object field in a
window.
> >Yes, this
> >is very easy to do in View:
> >
> >view layout [
> > across
> > h2 "User Input:"
> > return
> > txt 80 "First Name"
> > txt 160 user-input/first-name
> > return
> > txt 80 "Last Name"
> > txt 160 user-input/last-name
> > return
> > ...
> >]
>
> Hi Carl,
>
> Thanks for taking this time to respond.
>
> My question is not on the display basics. I think the basics are there in
the easyvid.r examples. And fortunately, I am
> past that level now. And I think the use of styles is one of the key
leverage points in View. Super job!
> My question is avoiding the work to refresh values on the view-able
portion.
> Here is the reference from the old View documentation:
>
> "The redraw function is called immediately before a face is displayed.
This allows a face to dynamically alter any of its facets prior to being
displayed. This
> is how screen interacters (buttons, choices, etc.) reflect their current
state to the user. For example, a button might be displayed as either up or
down
> depending on the state of a variable that has been set. The redraw
variable should be set to none if no function is needed. This speeds up the
interface