tk2tip                package:tcltk2                R Documentation

_D_i_s_p_l_a_y _a_n_d _m_a_n_a_g_e _t_o_o_l_t_i_p_s _i_n _t_k _w_i_d_g_e_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     'tk2tip' provides a simple mechanism to display tooltips on tk
     widgets when the mouse hoover on top of them.

_U_s_a_g_e:

       tk2tip(widget, message)
       tk2killtip()

_A_r_g_u_m_e_n_t_s:

  widget: The widget to which a tooltip is attached 

 message: The message of the tooltip ("" to remove the tooltip) 

_N_o_t_e:

     This implementation is done in pure tcl code

_A_u_t_h_o_r(_s):

     Philippe Grosjean

_S_e_e _A_l_s_o:

     'tk2widgets', 'tk2theme'

_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 tcltk package loaded

             tt2 <- tktoplevel()
         lb <- tk2label(tt2, text = "Move mouse over me, or over the button to see tooltip")
         tkgrid(lb)
         tk2tip(lb, "A tooltip for the label \ndisplayed on two lines")
         but <- tk2button(tt2, text = "OK", width = 10,
             command = function() tkdestroy(tt2))
         tkgrid(but)
         tk2tip(but, "Another tooltip for the button")
         #### TO DO: show the use of tk2killtip()!
       ## End(Not run)

