Win                package:svWidgets                R Documentation

_M_a_n_i_p_u_l_a_t_e _W_i_n_d_o_w_s

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

     R can combine various windows (native, Tk, Gtk, etc.). There could
     be problems when a GUI uses various kinds of windows together. For
     instance, it is very difficult to define a modal window that is
     modal for the whole application.  These functions manage windows
     and ease their clean creation an destruction.

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

       tkWinAdd(name = "tkwin1", parent = .TkRoot, title = NULL, pos = NULL, 
                     bind.delete = TRUE, ...)
       tkWinDelete(name)
       WinGet(name)
       WinNames()

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

    name: Name of a window 

  parent: Parent of this window 

   title: Title of the window 

     pos: Where to place the window. A string like '+XX+YY' where XX is
          the  horizontal position in pixels, and YY is the vertical
          position. Using negative values place the window relative to
          the right or bottom side of the screen. Specifying 'NULL' (by
          default) allows for automatic placement of the window. 

bind.delete: Do we automatically bind tkWinDelete to the windows delete
          envent? 

     ...: Additional options to pass to the window creator 

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

     The list of windows and pointers to their handles are stored in
     '.gui.Wins' in the 'TempEnv' environnement.

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

     'tkWinAdd()' and 'WinGet()' return the handle to the newly created
     window. 'WinNames()' return the list of all windows registered in
     .gui.Wins.

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

     Philippe Grosjean

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

     'MenuReadPackage', 'tkImgReadPackage'

_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

             # Creating and destroying a Tk window and inspecting the list
             WinNames()
             tkWinAdd("tt", title = "My win", pos ="-40+20")
             WinNames()
             tkwm.deiconify(WinGet("tt")) # Standard tcltk functions on the window
             tkWinDelete("tt")
             WinNames()
       ## End(Not run)

