home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 106 / EnigmaAmiga106CD.iso / software / utilities / installer / gui api / example / igui_swing_mode.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-27  |  1.2 KB  |  65 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  */
  10.  
  11. /********************************************************************
  12.  *
  13.  *  STATIC
  14.  *
  15.  */
  16.  
  17. /********************************************************************
  18.  *
  19.  *  EXTERN
  20.  *
  21.  */
  22.  
  23. /********************************************************************
  24.  *
  25.  *  PUBLIC
  26.  *
  27.  */
  28.  
  29. /********************************************************************
  30.  *
  31.  *  CODE
  32.  *
  33.  */
  34.  
  35. BOOL __asm igui_SWING_Mode(register __a0 APTR application,
  36.                            register __d0 BOOL mode)
  37. {
  38.   #ifdef DEBUG
  39.   DEBUG_MAKRO
  40.   #endif
  41.  
  42.   {
  43.     struct Application *app = (struct Application *) application;
  44.  
  45.     // keep the mode
  46.     app->app_SWING_Mode = mode;
  47.  
  48.     // switch to SWING mode
  49.     if (mode)
  50.     {
  51.       igui_NameProceed(app, app->app_Texts[BUTTON_NEXTPAGE]);
  52.       igui_NameCancel(app, app->app_Texts[BUTTON_PREVPAGE]);
  53.     }
  54.  
  55.     // reset from the SWING mode
  56.     else
  57.     {
  58.       igui_NameProceed(app, app->app_Texts[BUTTON_PROCEED_INSTALL]);
  59.       igui_NameCancel(app, app->app_Texts[BUTTON_CANCEL]);
  60.       igui_DisableCancel(app, FALSE);
  61.     }
  62.  
  63.     return (mode);
  64.   }
  65. }