summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers
diff options
context:
space:
mode:
Diffstat (limited to 'texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers')
-rw-r--r--texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex4
-rw-r--r--texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex29
-rw-r--r--texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex8
3 files changed, 34 insertions, 7 deletions
diff --git a/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex b/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex
index d91a2e33..dbf836bd 100644
--- a/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex
+++ b/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex
@@ -3,7 +3,9 @@
\usepackage[designv,tight]{web}
\usepackage{eforms}
\usepackage{graphicxsp}[2018/11/20]
-\usepackage{icon-appr}\previewOff
+\usepackage{icon-appr}
+
+%\previewOn\pmpvOn
\title{Creating icon appearances for button fields\texorpdfstring{\\[1ex]}{} using EPS methods with transparency}
\author{D. P. Story}
diff --git a/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex b/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex
index 3f864ba5..52494864 100644
--- a/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex
+++ b/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex
@@ -1,9 +1,10 @@
\documentclass{article}
-
\usepackage[designv,tight]{web}
\usepackage{eforms}
\usepackage{graphicxsp}[2018/11/20]
-\usepackage{icon-appr}\previewOff
+\usepackage{icon-appr}
+
+%\previewOn\pmpvOn
\title{Creating icon appearances for button fields\texorpdfstring{\\[1ex]}{ }using EPS methods}
\author{D. P. Story}
@@ -28,7 +29,7 @@
\section{Introduction}
-For the \textsf{\textbf{pdfmark}}-type drivers (\textsf{dvips} and
+Forxx the \textsf{\textbf{pdfmark}}-type drivers (\textsf{dvips} and
\textsf{dvipsone}), there are two ways to create an icon appearance: (1)
JavaScript methods and (2) EPS methods. The JavaScript methods are
demonstrated in \texttt{icons-appr-pb.tex}. A shortcoming of the JavaScript
@@ -81,4 +82,26 @@ however, the buttons have the correct appearances, but are not functional.
\pushButton[\CA{Reset}\A{\JS{this.resetForm();}}]{reset}{}{11bp}
+\section{Icons in this document}
+
+Use the button below to cycle through all icons in this document.
+
+% Note, compare this code and fields with that of icon-appr-exmpl.tex
+% in the latter file, we include a caption, where here, we do not
+% include a caption.
+\begin{defineJS}{\cycleJS}
+if (typeof indexIcon == "undefined") var indexIcon=0;
+var oIconName=this.icons[indexIcon].name;
+var f=this.getField("iconContainer");
+var oIcon=this.getIcon(oIconName);
+f.buttonSetIcon(oIcon);
+indexIcon = (indexIcon+1) \% (this.icons.length);
+\end{defineJS}
+
+\begin{center}
+\pushButton[\BG{}\autoCenter{n}
+ \TP{1}\I{}\S{S}]{iconContainer}{100bp}{100bp}\vcgBdry[6bp]
+\pushButton[\CA{Cycle}\AAmouseup{\cycleJS}]{cycleBtn}{}{11bp}
+\end{center}
+
\end{document}
diff --git a/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex b/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex
index 6c363c85..f528ea7f 100644
--- a/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex
+++ b/texmf-dist/doc/latex/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex
@@ -4,6 +4,8 @@
\usepackage{icon-appr}\previewOff
\usepackage{fancyvrb}
+%\previewOn\pmpvOn
+
\title{Creating icon appearances for push buttons\texorpdfstring{\\[1ex]}{}
using \textsf{aeb\_pro}}
\author{D. P. Story}
@@ -20,9 +22,9 @@
\newcommand{\cs}[1]{\texttt{\char`\\#1}}
\begin{embedding}
-\embedIcon[placement={Avatar1,[2]Avatar2}]{../graphics/man1.pdf}
-\embedIcon[placement={[1]Avatar1,[1]Avatar2}]{../graphics/scot.gif}
-\embedIcon[placement={[2]Avatar1,[0]Avatar2}]{../graphics/girl.png}
+\embedIcon[name=mani,placement={Avatar1,[2]Avatar2}]{../graphics/man1.pdf}
+\embedIcon[name=scot,placement={[1]Avatar1,[1]Avatar2}]{../graphics/scot.gif}
+\embedIcon[name=girl,placement={[2]Avatar1,[0]Avatar2}]{../graphics/girl.png}
\end{embedding}
\begin{document}