ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Clobbered!
@ 1999-06-04 20:38 David Arnold
  1999-06-05 18:54 ` Clobbered! Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 1999-06-04 20:38 UTC (permalink / raw)


Hans,

Yesterday, in my work in Up-001-s.pdf, I made good progress until I got to:

\setupfield
[ShortLine]
[label,frame,horizontal]
[offset=4pt,height=fit,framecolor=green,
background=screen,backgroundscreen=.80]
[height=18pt,width=80pt,align=middle,
background=screen,backgroundscreen=.90,frame=off]
[height=18pt,width=80pt,color=red,align=right,style=type,
background=screen,backgroundscreen=.90,frame=off]

This absolutely clobbered me! I have no clue what is going on here. There
are three parameters: label, frame, and horizontal. Does

[offset=4pt,height=fit,framecolor=green,
background=screen,backgroundscreen=.80]

refer to label,

[height=18pt,width=80pt,align=middle,
background=screen,backgroundscreen=.90,frame=off]

to frame, and

[height=18pt,width=80pt,color=red,align=right,style=type,
background=screen,backgroundscreen=.90,frame=off]

to horizontal? What is going on here?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Clobbered!
  1999-06-04 20:38 Clobbered! David Arnold
@ 1999-06-05 18:54 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 1999-06-05 18:54 UTC (permalink / raw)
  Cc: ntg-context

David Arnold wrote:

> Yesterday, in my work in Up-001-s.pdf, I made good progress until I got to:
> 
> \setupfield
> [ShortLine]
> [label,frame,horizontal]
> [offset=4pt,height=fit,framecolor=green,
> background=screen,backgroundscreen=.80]
> [height=18pt,width=80pt,align=middle,
> background=screen,backgroundscreen=.90,frame=off]
> [height=18pt,width=80pt,color=red,align=right,style=type,
> background=screen,backgroundscreen=.90,frame=off]
> 
> This absolutely clobbered me! I have no clue what is going on here. There
> are three parameters: label, frame, and horizontal. Does
> 
> [offset=4pt,height=fit,framecolor=green,
> background=screen,backgroundscreen=.80]
> 
> refer to label,
> 
> [height=18pt,width=80pt,align=middle,
> background=screen,backgroundscreen=.90,frame=off]
> 
> to frame, and
> 
> [height=18pt,width=80pt,color=red,align=right,style=type,
> background=screen,backgroundscreen=.90,frame=off]
> 
> to horizontal? What is going on here?

The main reason for this (complicated) sheme is saving hash entries.
Instead of giving each field (there can be thousands in a file) its own
set of 50+ parameters, they are saved in a compact form and inherited. 

I have plans for more (predefined) fieldtypes, including checks in JS.
Currently there is one main field type, based on upto 3 framed things:
the label, the field and both of them packaged.

The first argument of the setupfields defined of there is a label and/or
if label and field are next to each other or stacked. This is the
vertically stacked one: 

 --------------  
| -----  ----- |
||label||field||  
| -----  ----- |
 --------------

The second, third and fourth setting concern these three components and
because framed is used, one has a lot of influence on the typo. 

Some settings have consequences for others (when it makes sense they are
inherited). Also, when possible, font settings are also reflected in the
widget, so type=slanted indeed gives a slanted field (keyed in). Even
sans and mono are supported. 

\setupfields (plural) affects all fields, and each call adds to the
settings. One can reset these default by \setupfields[reset].

For the moment, fields force you to experiment. Sorry. 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-06-05 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-04 20:38 Clobbered! David Arnold
1999-06-05 18:54 ` Clobbered! Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).