home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / intuition / activatewindow.c < prev    next >
Encoding:
C/C++ Source or Header  |  1978-03-06  |  2.1 KB  |  84 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: activatewindow.c,v 1.4 1996/11/08 11:28:00 aros Exp $
  4.     $Log: activatewindow.c,v $
  5.     Revision 1.4  1996/11/08 11:28:00  aros
  6.     All OS function use now Amiga types
  7.  
  8.     Moved intuition-driver protos to intuition_intern.h
  9.  
  10.     Revision 1.3  1996/10/24 15:51:17  aros
  11.     Use the official AROS macros over the __AROS versions.
  12.  
  13.     Revision 1.2  1996/08/29 13:33:30  digulla
  14.     Moved common code from driver to Intuition
  15.     More docs
  16.  
  17.     Revision 1.1  1996/08/23 17:28:17  digulla
  18.     Several new functions; some still empty.
  19.  
  20.  
  21.     Desc:
  22.     Lang: english
  23. */
  24. #include "intuition_intern.h"
  25.  
  26. /*****************************************************************************
  27.  
  28.     NAME */
  29.     #include <clib/intuition_protos.h>
  30.  
  31.     AROS_LH1(void, ActivateWindow,
  32.  
  33. /*  SYNOPSIS */
  34.     AROS_LHA(struct Window *, window, A0),
  35.  
  36. /*  LOCATION */
  37.     struct IntuitionBase *, IntuitionBase, 75, Intuition)
  38.  
  39. /*  FUNCTION
  40.     Activates the specified window. The window gets the focus
  41.     and all further input it sent to that window. If the window
  42.     requested it, it will get a IDCMP_ACTIVEWINDOW message.
  43.  
  44.     INPUTS
  45.     window - The window to activate
  46.  
  47.     RESULT
  48.     None.
  49.  
  50.     NOTES
  51.     If the user has an autopointer tool (sunmouse), the call will
  52.     succeed, but the tool will deactivate the window right after
  53.     this function has activated it. It is no good idea to try to
  54.     prevent this by waiting for IDCMP_INACTIVEWINDOW and activating
  55.     the window again since that will produce an anoying flicker and
  56.     it will slow down the computer a lot.
  57.  
  58.     EXAMPLE
  59.  
  60.     BUGS
  61.  
  62.     SEE ALSO
  63.     ModiyIDCMP(), OpenWindow(), CloseWindow()
  64.  
  65.     INTERNALS
  66.  
  67.     HISTORY
  68.     29-10-95    digulla automatically created from
  69.                 intuition_lib.fd and clib/intuition_protos.h
  70.  
  71. *****************************************************************************/
  72. {
  73.     AROS_LIBFUNC_INIT
  74.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  75.  
  76.     intui_ActivateWindow (window);
  77.  
  78.     /* This comes _after_ intui_ActivateWindow() because the driver
  79.     might want to deactivate the old window first */
  80.     IntuitionBase->ActiveWindow = window;
  81.  
  82.     AROS_LIBFUNC_EXIT
  83. } /* ActivateWindow */
  84.