[ALLY] Re: Redrawn Out
From: carl:pacific at: 6-Jan-2001 9:24
I don't like thinking about how old those docs are, or in fact how old view
to what we run these days in Link.
If I understand correctly, you want to display the object field in a window.
is very easy to do in View:
view layout [
h2 "User Input:"
txt 80 "First Name"
txt 160 user-input/first-name
txt 80 "Last Name"
txt 160 user-input/last-name
Here's a tip that you will want to remember: If the field is a number,
date, time, or
any non-string, put a FORM in front of it.
txt 80 "Age"
txt 40 form user-input/age
That converts it to a string, allowing it to be shown.
You may want to show the fields within boxes:
txt 80 "First Name"
txt 160 user-input/first-name black silver
The first color is the text, the second is the text box. Helps it stand
Since most of your txt fields will have the same settings, you can make a
style to cut down on typing:
style tx txt 80
style tr txt 160 black silver
Now you change that first style to something like:
style tx txt 80 right
And that will right-justify your field labels. Some people think that looks
----- Original Message -----
Sent: Friday, January 05, 2001 2:25 PM
Subject: [ALLY] Redrawn Out
> Redrawn Out
> I am trying to bind some interacters especially txt display values to an
object that I used to collect the user input
> user-input: make object! [
> first-name: none
> last-name: none
> date-of-birth: none ; and so on
> so when I get these from the interacters on input, I can hold them and use
them in the application flow.
> At the end of the data collection, I want to display the values in a
> Each field can be moved and refreshed individually. The old View document
suggests that the right way to do this is to fire the redraw function e.g.
> return txt "First Name"
> tab txt with [
> feel: make feel [
> redraw: func [face [object!] action [word!] offset [pair!]][
> text: user-input/first-name]
> But after doing a few of these, the tedium and amount of keying makes me
think this is not what was intended given that all I want to do is pass one
value to the definition (here "user-input/first-name").