Anton has shown how it will work.
In your new example you have the comment "tab 40 spaces below field 1" which
suggests that you believe a TAB generates space from the current position
which is the bit that is confusing for you. Tab does use the current
position to calculate the next but not by generating space..
TAB is like a "snap-to-grid" option in a graphics program. That is what "TAB
skips forward in the current direction (across or below) to the next tab
position." means. The positions are pre-defined.
TABS 40 sets up a grid of tab positions. When you use TAB it calculates that
next position and places your next element at that point. This is why you
must use TAB on your first field if your first field is not already at the
correct location.
The only thing is that that there is no Tab-zero (unfortunately). VID it
goes from Tab-one up.
Hope that clear it up!
Brett.
----- Original Message -----
From: "Rishi Oswal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 5:14 PM
Subject: [REBOL] Re: is this a bug?
> hi Anton. I'm sorry, it still seems like a bug to me.
> The documentation says:
>
> "TAB skips forward in the current direction (across or
> below) to the next tab position."
>
> So if you have the following code:
>
> rebol []
> view layout [
> tabs 40 ;sets tab space to 40 pixels.
> field "Field 1" ;displays field 1 with no tab
> tab ; tab 40 spaces below field 1
> field "Field 2" ;display field 2
> tab ;tab 40 spaces below field 2
> field "Field 3" ;display field 3
> ]
> But it does not seem to work this way. Instead it
> seems like there is 80pixels between field 1 and
> field2 and 40 pixels between field 2 and field 3. It
> doesn't seem to make sense to me...
>
> rishi
> ]
>
> --- Anton <[EMAIL PROTECTED]> wrote:
> > Yes it does.
> > If you put a tab before the first field,
> > it will work:
> >
> > view layout [tabs 40 tab field tab field tab field]
> >
> > In your example the first field is not tab aligned,
> > but the second and third are.
> >
> > Anton.
> >
> > > tab keyword doesn't seem to function properly when
> > > used vertically:
> > >
> > > Rebol []
> > >
> > > view layout [
> > > tabs 40
> > > field "Field 1"
> > > tab
> > > field "Field 2"
> > > tab
> > > field "Field 3"
> > > ]
> > >
> > > Why doesn't the tab between field 2 and field 3
> > show
> > > up?
> >
> >
> > --
> > To unsubscribe from this list, please send an email
> > to
> > [EMAIL PROTECTED] with "unsubscribe" in the
> > subject, without the quotes.
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.