Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[ALLY] Re: Redrawn Out

From: carl:pacific at: 6-Jan-2001 9:24

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 ... ] 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. Other suggestions: 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 out. 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 tx "User-Input" tr user-input/first-name return 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 better. Have fun, -Carl ----- Original Message ----- From: <[mike--myers--cybarite--com]> To: <[ally-list--rebol--com]> 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
verfication screen.
> 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").