133 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			133 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <HTML>
 | |
| <HEAD><TITLE>SelectFont</TITLE></HEAD>
 | |
| <BODY BGCOLOR=white>
 | |
| <DL><DT><I><A HREF="#descr">NAME</A></I></DT>
 | |
| <DD><B>SelectFont</B>
 | |
|  - Font selection widget
 | |
| </DD></DL>
 | |
| <DL>
 | |
| <DT><I>CREATION</I></DT>
 | |
| <DD><A HREF="#descr"><B>SelectFont</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
 | |
| </DL>
 | |
| <DL>
 | |
| <DT><I>STANDARD OPTIONS</I></DT>
 | |
| <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
 | |
| <TR>
 | |
| <TD>  <A HREF="options.htm#M-background">-background or -bg</A></TD>
 | |
| <TD>  <A HREF="options.htm#M-font">-font</A></TR>
 | |
| </TR>
 | |
| </TABLE></DD>
 | |
| </DL>
 | |
| <DL>
 | |
| <DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
 | |
| <DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
 | |
| <TR>
 | |
| <TD>  <A HREF="#-command">-command</A></TR>
 | |
| <TD>  <A HREF="#-parent">-parent</A></TR>
 | |
| </TR>
 | |
| <TR>
 | |
| <TD>  <A HREF="#-sampletext">-sampletext</A></TR>
 | |
| <TD>  <A HREF="#-title">-title</A></TR>
 | |
| </TR>
 | |
| <TR>
 | |
| <TD>  <A HREF="#-type">-type</A></TR>
 | |
| </TABLE></DD>
 | |
| </DL>
 | |
| <DL>
 | |
| <DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
 | |
| <DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
 | |
|  <I>option</I>
 | |
| </DD>
 | |
| <DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
 | |
|  ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
 | |
| </DD>
 | |
| <DD>SelectFont::<A HREF="#loadfont"><B>loadfont</B></A>
 | |
| </DD>
 | |
| </DL>
 | |
| <BR><HR WIDTH="100%"><BR>
 | |
| <B><A NAME="descr"></A>DESCRIPTION</B><BR>
 | |
| <P>
 | |
| 
 | |
| SelectFont provides a simple way to choose font. It can be displayed
 | |
| as a dialog box or as a toolbar.
 | |
| <BR>Textual items in Dialog box uses <B>-name</B> options so they
 | |
| can be translated to any language. Symbolic name used are
 | |
| <B>ok</B>, <B>cancel</B>, <B>font</B>, <B>size</B>, <B>style</B>,
 | |
| <B>bold</B>, <B>italic</B>, <B>underline</B> and <B>overstrike</B>.
 | |
| 
 | |
| </P>
 | |
| <BR><HR WIDTH="50%"><BR>
 | |
| <B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
 | |
| <DL><DT><A NAME="-command"><B>-command</B></A></DT>
 | |
| <DD>
 | |
| 
 | |
| Specifies a command to call when user select a new font when SelectFont <B>type</B>
 | |
| option is <I>toolbar</I>.
 | |
| 
 | |
| </DD>
 | |
| </DL>
 | |
| <DL><DT><A NAME="-parent"><B>-parent</B></A></DT>
 | |
| <DD>
 | |
| 
 | |
| Parent of the Dialog. Dialog is centered in its parent. If empty, it is centered in
 | |
| root window.
 | |
| </DD>
 | |
| </DL>
 | |
| <DL><DT><A NAME="-sampletext"><B>-sampletext</B></A></DT>
 | |
| <DD>
 | |
| 
 | |
| Specifies the text displayed in the preview area.
 | |
| 
 | |
| </DD>
 | |
| </DL>
 | |
| <DL><DT><A NAME="-title"><B>-title</B></A></DT>
 | |
| <DD>
 | |
| 
 | |
| Title of the Dialog toplevel.
 | |
| 
 | |
| </DD>
 | |
| </DL>
 | |
| <DL><DT><A NAME="-type"><B>-type</B></A></DT>
 | |
| <DD>
 | |
| 
 | |
| Specifies the type of the SelectFont widget. Must be <B>dialog</B> or <B>toolbar</B>.
 | |
| <BR>If <B>type</B> option is <I>dialog</I>, SelectFont::<B>create</B> directly creates the 
 | |
| dialog, displays it and return an empty string if cancel button is pressed or if dialog is
 | |
| destroyed, and the selected font if ok button is pressed. In all cases, dialog is destroyed.
 | |
| <BR>If <B>type</B> option is <I>toolbar</I>, SelectFont::<B>create</B> returns the pathname
 | |
| of the widget created.
 | |
| 
 | |
| </DD>
 | |
| </DL>
 | |
| <HR WIDTH="50%"><BR>
 | |
| <B><A NAME="wc">WIDGET COMMAND</A></B><BR>
 | |
| <DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
 | |
|  <I>option</I>
 | |
| </DT><DD>
 | |
| 
 | |
| Returns the current value of the configuration option given by <I>option</I>.
 | |
| <I>Option</I> may have any of the values accepted by the creation command.
 | |
| </DD></DL>
 | |
| <DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
 | |
|  ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
 | |
| </DT><DD>
 | |
| 
 | |
| Query or modify the configuration options of the widget. If no <I>option</I> is specified,
 | |
| returns a list describing all of the available options for <I>pathName</I>.
 | |
| If <I>option</I> is specified with no <I>value</I>, then the command returns a list
 | |
| describing the one named <I>option</I> (this list will be identical to the corresponding
 | |
| sublist of the value returned if no <I>option</I> is specified). If one or
 | |
| more <I>option-value</I> pairs are specified, then the command modifies the given widget
 | |
| option(s) to have the given value(s); in this case the command returns an empty string.
 | |
| <I>Option</I> may have any of the values accepted by the creation command.
 | |
| Read-only options are not be modified.
 | |
| 
 | |
| </DD></DL>
 | |
| <DL><DT><A NAME="loadfont">SelectFont::<B>loadfont</B></A>
 | |
| </DT><DD>
 | |
| 
 | |
| Load the font available in the system.
 | |
| 
 | |
| </DD></DL>
 | |
| </BODY></HTML>
 | 
