:= unitsquare
xscaled OverlayWidth yscaled OverlayHeight ;
fill p withcolor .8white ;
draw p withcolor .625red ;
\stopuseMPgraphic
\defineoverlay[button][\useMPgraphic{wrong or right}]
\setupbuttons[background=button,frame=off]
\setupinteraction[state=start
'
LuaTools |
LuaTools | runtime: 10.399 seconds
@Taco, I think my core-ref.tex contains the same as yours:
3165 \def\setupbuttons
3166{\dodoubleargument\getparameters[\??bt]}
3167
3168 \definecomplexorsimpleempty\button
3169
3170 \def\complexbutton
3171
]
\setupbodyfont[options]
\setupbodyfontenvironment[settings][settings]
\setupbottom[settings][settings]
\setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupbuffer[name][options]
\setupbuttons[state][settings]
\setupcapitals[title=yes|no][sc
][][
\setupfield
[Results]
[horizontal,frame]
[width=fit,
height=2cm,
frame=on]
[height=18pt,width=80pt,align=middle,frame=off]
[height=18pt,width=80pt,color=red,align=right,style=type,frame=off]
\setupbuttons [background=infobutton]
\starttext
Click \button{7}[JS(digit{7
=off]
\setupbuttons [background=infobutton]
\starttext
Click \button{7}[JS(digit{7})] will get
\field[Stack.1]
\stoptext
I only copied these codes from art-calc.pdf so there must be some
other critical
,
height=2cm,
frame=on]
[height=18pt,width=80pt,align=middle,frame=off]
[height=18pt,width=80pt,color=red,align=right,style=type,frame=off]
\setupbuttons [background=infobutton]
\starttext
Click \button{7}[JS(digit{7})] will get
\field[Stack.1]
\stoptext
,
height=2cm,
frame=on]
[height=18pt,width=80pt,align=middle,frame=off]
[height=18pt,width=80pt,color=red,align=right,style=type,frame=off]
\setupbuttons [background=infobutton]
\starttext
Click \button{7}[JS(digit{7})] will get
\field[Stack.1]
\stoptext
,align=right,style=type,frame=off]
\setupbuttons [background=infobutton]
\starttext
Click \button{7}[JS(digit{7})] will get
\field[Stack.1]
\stoptext
I only copied these codes from art-calc.pdf so there must be some
were set with:
\def\renderingmenu[#1]%
{\hbox
{\setupbuttons[width=2.5em]%
\button{\symbol[StartMovie]} [StartMovie{#1}]\enspace
\button{\symbol[StopMovie]} [StopMovie{#1}]\enspace
\button{\symbol[PauseMovie]} [PauseMovie{#1}]\enspace
\button{\symbol
,preview=yes]
That's what I had and somehow could not get working again.
I therefore did some experimenting and now I have something working:
\setupinteraction[menu=on,state=start]
\def\renderingmenu[#1]%
{\hbox
{\setupbuttons[width=16mm,height=12mm]%
\button{\symbol
][application/x-shockwave-flash][celebration.swf]
\useexternalrendering[example-5][video/quicktime] [p1000726.mov]
\useexternalrendering[example-6][application/smil]
[quadratic_map.smi]
\def\renderingmenu[#1]%
{\hbox
{\setupbuttons[width=2.5em]%
\button{\symbol
]
\def\renderingmenu[#1]%
{\hbox
{\setupbuttons[width=2.5em]%
\button{\symbol[StartRendering]} [StartRendering{#1}]\enspace
\button{\symbol[StopRendering]} [StopRendering{#1}]\enspace
\button{\symbol[PauseRendering]} [PauseRendering{#1}]\enspace
\button
12 matches
Mail list logo