Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 2fc07611b08d4a735fd34d5eb60d8e16 > files > 2082

ciao-1.10p8-3mdv2010.0.i586.rpm

<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               - menu_entry_class (library)</TITLE>
</HEAD>
<BODY> 
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_136.html">previous</A>, <A HREF="ciao_138.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="SEC575" HREF="ciao_toc.html#TOC575">menu_entry_class (library)</A></H1>
<P>
<A NAME="IDX6422"></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#135 (2003/12/4, 17:33:57 CET)



<UL>
<LI><A HREF="ciao_137.html#SEC576">Usage and interface (menu_entry_class)</A>
<LI><A HREF="ciao_137.html#SEC577">Documentation on exports (menu_entry_class)</A>
</UL>



<H2><A NAME="SEC576" HREF="ciao_toc.html#TOC576">Usage and interface (<CODE>menu_entry_class</CODE>)</A></H2>

<div class="cartouche">

<UL>

<LI><STRONG>Library usage:</STRONG>

<CODE>:- use_module(library(menu_entry_class)).</CODE>

<LI><STRONG>Exports:</STRONG>


<UL>

<LI><EM>Predicates:</EM>

<A NAME="IDX6423"></A>
<CODE>set_name/1</CODE>, 
<A NAME="IDX6424"></A>
<CODE>set_action/1</CODE>, 
<A NAME="IDX6425"></A>
<CODE>label_value/1</CODE>, 
<A NAME="IDX6426"></A>
<CODE>menu_name/1</CODE>.

</UL>

<LI><STRONG>Other modules used:</STRONG>


<UL>

<LI><EM>System library modules:</EM>

<A NAME="IDX6427"></A>
<CODE>objects/objects_rt</CODE>, 
<A NAME="IDX6428"></A>
<CODE>tcltk_obj/menu_class</CODE>, 
<A NAME="IDX6429"></A>
<CODE>lists</CODE>.

</UL>

</UL>

</div class="cartouche">



<H2><A NAME="SEC577" HREF="ciao_toc.html#TOC577">Documentation on exports (<CODE>menu_entry_class</CODE>)</A></H2>
<P>
<A NAME="IDX6430"></A>
<A NAME="IDX6431"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>set_name/1:</B>
<DD><A NAME="IDX6432"></A>


<P>
<STRONG>Usage:</STRONG> <CODE>set_name(+Name)</CODE>

<UL>
<LI><EM>Description:</EM> <CODE>Name</CODE> of the menubutton associated.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+Name</CODE> is currently instantiated to an atom.
 (<CODE>term_typing:atom/1</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX6433"></A>
<A NAME="IDX6434"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>set_action/1:</B>
<DD><A NAME="IDX6435"></A>


<P>
<STRONG>Usage:</STRONG> <CODE>set_action(+Predicate)</CODE>

<UL>
<LI><EM>Description:</EM> Specifies <CODE>Predicate</CODE> asociated to the menu entry.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+Predicate</CODE> is currently instantiated to an atom.
 (<CODE>term_typing:atom/1</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX6436"></A>
<A NAME="IDX6437"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>label_value/1:</B>
<DD><A NAME="IDX6438"></A>


<P>
<STRONG>Usage 1:</STRONG> <CODE>label_value(+Value)</CODE>

<UL>
<LI><EM>Description:</EM> <CODE>Value</CODE> specifies a value to be displayed as an identifying label in the menu entry.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+Value</CODE> is currently instantiated to an atom.
 (<CODE>term_typing:atom/1</CODE>)
</UL>

<P>
<STRONG>Usage 2:</STRONG> <CODE>label_value(-Value)</CODE>

<UL>
<LI><EM>Description:</EM> Gets the string which identify label in the menu entry.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>-Value</CODE> is currently instantiated to an atom.
 (<CODE>term_typing:atom/1</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX6439"></A>
<A NAME="IDX6440"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>menu_name/1:</B>
<DD><A NAME="IDX6441"></A>


<P>
<STRONG>Usage 1:</STRONG> <CODE>menu_name(+Menu)</CODE>

<UL>
<LI><EM>Description:</EM> <CODE>Menu</CODE> posted when cascade entry is invoked.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+Menu</CODE> is currently instantiated to an atom.
 (<CODE>term_typing:atom/1</CODE>)
</UL>

<P>
<STRONG>Usage 2:</STRONG> <CODE>menu_name(-Menu)</CODE>

<UL>
<LI><EM>Description:</EM> Gets the <CODE>Menu</CODE> asociated to the cascade entry.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>-Menu</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_136.html">previous</A>, <A HREF="ciao_138.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
</BODY>
</HTML>