<HTML> <HEAD> <!-- Created by texi2html 1.56k + clip patches and <A href="http://www.clip.dia.fi.upm.es/Software">lpdoc</A> from ciao.texi on 28 January 2007 --> <LINK rel="stylesheet" href="ciao.css" type="text/css"> <TITLE>The Ciao Prolog System - button_class (library)</TITLE> </HEAD> <BODY> Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_130.html">previous</A>, <A HREF="ciao_132.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>. <P><HR><P> <H1><A NAME="SEC557" HREF="ciao_toc.html#TOC557">button_class (library)</A></H1> <P> <A NAME="IDX6370"></A> <P> <STRONG>Author(s):</STRONG> Montserrat Urraca. <P> <STRONG>Version:</STRONG> 1.10#7 (2006/4/26, 19:22:13 CEST) <P> <STRONG>Version of last change:</STRONG> 1.9#122 (2003/12/4, 17:32:36 CET) <UL> <LI><A HREF="ciao_131.html#SEC558">Usage and interface (button_class)</A> <LI><A HREF="ciao_131.html#SEC559">Documentation on exports (button_class)</A> </UL> <H2><A NAME="SEC558" HREF="ciao_toc.html#TOC558">Usage and interface (<CODE>button_class</CODE>)</A></H2> <div class="cartouche"> <UL> <LI><STRONG>Library usage:</STRONG> <CODE>:- use_module(library(button_class)).</CODE> <LI><STRONG>Exports:</STRONG> <UL> <LI><EM>Predicates:</EM> <A NAME="IDX6371"></A> <CODE>command_button/1</CODE>. </UL> <LI><STRONG>Other modules used:</STRONG> <UL> <LI><EM>System library modules:</EM> <A NAME="IDX6372"></A> <CODE>objects/objects_rt</CODE>. </UL> </UL> </div class="cartouche"> <H2><A NAME="SEC559" HREF="ciao_toc.html#TOC559">Documentation on exports (<CODE>button_class</CODE>)</A></H2> <P> <A NAME="IDX6373"></A> <A NAME="IDX6374"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>command_button/1:</B> <DD><A NAME="IDX6375"></A> <P> <STRONG>Usage 1:</STRONG> <CODE>command_button(+Command)</CODE> <UL> <LI><EM>Description:</EM> Sets a Tcl <CODE>Command</CODE> to be associated with the button. This <CODE>Command</CODE> is typically invoked when mouse button 1 is released over the button window. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>+Command</CODE> is currently instantiated to an atom. (<CODE>term_typing:atom/1</CODE>) </UL> <P> <STRONG>Usage 2:</STRONG> <CODE>command_button(-Command)</CODE> <UL> <LI><EM>Description:</EM> Gets the Tcl <CODE>Command</CODE> associated with the button. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>-Command</CODE> is currently instantiated to an atom. (<CODE>term_typing:atom/1</CODE>) </UL> </DL> <P><HR><P> Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_130.html">previous</A>, <A HREF="ciao_132.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>. </BODY> </HTML>