home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / intuition / activatewindow.c next >
C/C++ Source or Header  |  1997-01-27  |  2KB  |  90 lines

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