\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#152: New -detail Option for tk\_messageBox}
\date{August 26, 2003}
\author{Mats Bengtsson}
\urlstyle{sf}
\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}
\def\tipversion$#1${\texttt{\$#1\$}}
\def\tiplangle#1{\ensuremath{<}}
\def\tiprangle#1{\ensuremath{>}}
\def\tipbar#1{\ensuremath{|}}
\def\tipmail#1#2{\(\langle\){\small\expandafter\url{#1@#2}}\(\rangle\)}
\ifx\pdfoutput\undefined
\newcommand{\tipimage}[2]{\typeout{Make sure you download #1.eps}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.eps}}{\includegraphics[width=0.8\textwidth]{#1.eps}}}
\newcommand{\tipxref}[1]{}
\newcommand{\tipxrefend}{}
\else
\newcommand{\tipimage}[2]{\typeout{Make sure you create #1.pdf}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.pdf}}{\includegraphics[width=0.8\textwidth]{#1.pdf}}}
\pdfcatalog{/PageMode /UseOutlines}
\newcommand{\tipxref}[1]{\pdfannotlink attr {/C [0.5 0.5 1.0] /Border [0 0 1]} goto name {#1}}
\newcommand{\tipxrefend}{\pdfendlink}
\fi
\newenvironment{tipabstract}{\begin{abstract}}{\end{abstract}}
\begin{document}\maketitle
\begin{center}\begin{tabularx}{\linewidth}{|r@{: }X|}\hline
\textbf{TIP \#152}&\textbf{New -detail Option for tk\_messageBox}\\\hline
Author&

Mats Bengtsson \tipmail{matben}{privat.utfors.se}
\\
Created&Tuesday, \(\text{26}^{\text{th}}\) August 2003\\
Type&Project\\
Tcl Version&\(8.5\)\\
State&Final\\
Vote&Done\\
Version&\tipversion$Revision: 1.7 $\\
Keywords&Tk\\
Obsoletes&25\\
Post History&\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

This TIP proposes a new option for the \textbf{tk\_messageBox} for text that is less significant than the \textbf{-message} text.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Rationale}

Several platforms have a native feature of alert dialogs that includes messages with both a bold or large font, and a text in fine print, which gives more detail to the actual message. Both Mac OS 8/9 and Mac OS X include such a feature. This TIP suggests that this should be intruduced on all platforms, with the text to be displayed in that format specified using a new option \textbf{-detail}. In those cases where it is not straightforward to distinguish between the \textbf{-message} and \textbf{-detail} option contents, they should be combined into a single piece of text in a way that makes sense on the platform.

\section{Reference Implementation}

The proposed change is now implemented as a loadable extension (in C) on Mac OS X [\url{http://hem.fyristorg.com/matben/download/MovableAlerts.dmg}].

The following images show the present (8.4.4) message box on AquaTk, and the proposed one.

\begin{figure}[htbp]\begin{center}\leavevmode
\tipimage{152before}{274pt}
\caption{This is the present tk\_messageBox.}
\end{center}\end{figure}

\begin{figure}[htbp]\begin{center}\leavevmode
\tipimage{152after}{470pt}
\caption{This is the native tk\_messageBox.}
\end{center}\end{figure}

\section{Copyright}

This document has been placed in the public domain

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\end{document}
