home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Resources / System / BoingBag1 / Contributions / InstallerNG / GUI-API / example / igui_SetParseGauge.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  990b  |  50 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  *  set the gauge value for the parse gauge (if your gui does
  10.  *  not provide this feature, just return 0)
  11.  *
  12.  *  IN:  application - pointer to the private application structure
  13.  *       value - a number between 0...100
  14.  *
  15.  */
  16.  
  17. /********************************************************************
  18.  *
  19.  *  STATIC
  20.  *
  21.  */
  22.  
  23. /********************************************************************
  24.  *
  25.  *  EXTERN
  26.  *
  27.  */
  28.  
  29. /********************************************************************
  30.  *
  31.  *  PUBLIC
  32.  *
  33.  */
  34.  
  35. /********************************************************************
  36.  *
  37.  *  CODE
  38.  *
  39.  */
  40.  
  41. void __asm igui_SetParseGauge(register __a0 APTR application,
  42.                               register __d0 long value)
  43. {
  44.   #ifdef DEBUG
  45.   DEBUG_MAKRO
  46.   #endif
  47.  
  48.   set(((struct Application *) application)->app_ParseGauge, MUIA_Gauge_Current, value);
  49. }
  50.