tooltip             package:widgetTools             R Documentation

_A _t_c_l_t_k _w_i_d_g_e_t _t_o _m_i_m_i_c _a _t_o_o_l_t_i_p

_D_e_s_c_r_i_p_t_i_o_n:

     Current tcltk library does not support tooltip unless an extension
     is included. The function tooltip is implemented as an
     alternative.

_U_s_a_g_e:

     tooltip(text, targetWidget, width = 350)

_A_r_g_u_m_e_n_t_s:

    text: 'text' a character string for the content of the tooltip

targetWidget: 'targetWidget' a tkwin object for the target tcltk widget
          to which a tool tip will be associated

   width: 'width' an integer for the width (in pixels) of the tooltip

_D_e_t_a_i_l_s:

     Given a target tcltk widget, a tooltip will be associated with the
     widget. The content of the tooltip will be shown when mouse moves
     over the widget and disappear when mouse moves out of the widget.

_V_a_l_u_e:

     This function returns invisible()

_N_o_t_e:

     This function is part of the Bioconductor project at Dana-Farber
     Cancer Institute to provide Bioinformatics functionalities through
     R

_A_u_t_h_o_r(_s):

     Jianhua Zhang

_R_e_f_e_r_e_n_c_e_s:

     tcltk

_S_e_e _A_l_s_o:

     'dropdownList'

_E_x_a_m_p_l_e_s:

     ## Not run: 
         ## These cannot be run by examples() but should be OK when pasted
         ## into an interactive R session with the widgetTools package loaded
         
         base <- tktoplevel()
         but <- tkbutton(base, text = "Move Mouse Over Me")
         tkpack(but)
         tkbind(but, "<Enter>", expression(tooltip("Move mouse off me", but)))

         # Destroy toplevel widget
         # tkdestroy(base)
     ## End(Not run)

