Enlightenment CVS committal Author : dj2 Project : e17 Module : docs
Dir : e17/docs/ewlbook/xml/widgets Modified Files: other_widgets.xml Log Message: - ewl_tooltip info from ktabic (slightly modified) =================================================================== RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/xml/widgets/other_widgets.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- other_widgets.xml 3 Nov 2004 18:44:45 -0000 1.3 +++ other_widgets.xml 15 Mar 2005 00:59:49 -0000 1.4 @@ -494,6 +494,10 @@ <sect2 id="sec-EwlTooltip"> <title>Ewl_Tooltip</title> <para> +The <literal>Ewl_Tooltip</literal> widget provides a simple popup dislpaying +information about the widgets in your application. The tooltip appears after the mouse has hovered over the widget of a period of time. +</para> +<para> <figure> <title>An EWL tooltip</title> <inlinemediaobject> @@ -507,6 +511,33 @@ </figure> </para> <para> +<example id="sec-EwlTooltipCode"> +<title>Ewl Tooltip code</title> +<programlisting role="C"> + Ewl_Widget *t = ewl_tooltip_new(parent); + ewl_toolip_text_set(t, "this is the tooltip"); +</programlisting> +</example> +The <function>ewl_tooltip_new()</function> function takes as its parameter, +the Ewl_Widget that the tooltip is to be associated with. A tooltip may contain multiple lines of text. +</para> +<para> +An Ewl_Tooltip should be appended to the parent Ewl_Window of the widget it is +associated with. +</para> +<para> +Unlike most other widgets, you should not use the ewl_widget_show() function wit +h the Ewl_Tooltip. +</para> + +<para> +Once the tooltip is created, you can modify the text that the tooltip +displays along with changing the delay before the tooltip appears. These +modifications are done with: +<itemizedlist mark="bullet" spacing="compact"> + <listitem><para><function>ewl_tooltip_text_set(Ewl_Tooltip *t, char *txt)</function></para></listitem> + <listitem><para><function>ewl_tooltip_delay_set(Ewl_Tooltip *t, double delay)</function></para></listitem> +</itemizedlist> </para> </sect2> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs