Fct_Change_Window

 

This function change the currently selected child of a class.

 

 

Syntax

 

void  Fct_Change_Child(

          SliceO_Window *window,

) ;

 

 

Parameters

 

window

Pointer to the window you want to be the selected window.

 

 

Return value

 

This function does not return a value.

 

 

Remarks

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

 

Library:

          sliceO_Structures.lib

 

 

Example

 

From window_script.cpp

          ...

 

          char *t_window = pt_arg[0] ;

          cmd = pt_arg[1] ;

 

          SliceO_Window *list_pt[100] ;

          int list_nb = Fct_Match_Template_Window( t_window, 100, list_pt ) ;

 

          // --------------------------------------------------------------------

          if ( ! _strnicmp( cmd, "current", 3 ) ) {

 

                              if ( ! Script_Arg_Check( "Window: id current", nb_arg, 2 ) )

                                        return( 0 ) ;

 

                              if ( list_nb != 1 )

                              return( 0 ) ;

 

                    // --- locate the new window ---

                    Fct_Change_Window( list_pt[0] ) ;

 

                    Fct_Redraw( REDRAW_ALL_2D, NULL ) ;

                    return( 1 ) ;

          }

 

          ...

 

See also