ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* minimal button width
@ 2003-09-27 13:17 Peter Rolf
  2003-09-27 13:44 ` Patrick Gundlach
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Rolf @ 2003-09-27 13:17 UTC (permalink / raw)


I want some small empty buttons with exact dimensions. Is there a way to do
this with \button or must I use fields (ughh) instead?



% interface=en output=pdftex
%
\setupinteraction[state=start]
\setupcolors[state=start]


\starttext

\setupbuttons[strut=no, offset=overlay, framecolor=green, empty=yes]

The minimum width of a button depends on the actual bodyfont size.
I'm sure that there are good reasons for it.
\blank[big]

\switchtobodyfont[20pt]
But I want smaller {\bf empty} \textreference[test]{test}buttons!
\button[width=25mm, height=2.5mm]{Please, print me!}[test]
\button[width=2.5mm, height=25mm]{Not this time!}[test]
\blank[big]

\switchtobodyfont[40pt]
Help at 40pt...
\button[width=25mm, height=2.5mm]{Now?}[test]
\button[width=2.5mm, height=25mm]{Nope!}[test]

\stoptext



Regards,

    Peter

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

end of thread, other threads:[~2003-09-30 13:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-27 13:17 minimal button width Peter Rolf
2003-09-27 13:44 ` Patrick Gundlach
2003-09-28 11:09   ` Peter Rolf
2003-09-28 11:29     ` Patrick Gundlach
2003-09-28 13:35       ` Peter Rolf
2003-09-29  8:20     ` Hans Hagen
2003-09-29 10:13       ` Peter Rolf
2003-09-30 13:13         ` Peter Rolf

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).