home *** CD-ROM | disk | FTP | other *** search
/ Kyūkyoku!! X68000 Emulator / X68000Book.dat / mac / OLS / X68000 / Ko-Window / kow142s.lzh / corlib / MgButtonSet.c < prev    next >
C/C++ Source or Header  |  1992-10-15  |  386b  |  22 lines

  1. /*    Copyright 1992 H.Ogasawara (COR.)    */
  2.  
  3. #include    <wlib.h>
  4. #include    <parts.h>
  5. #include    "MgButton.h"
  6.  
  7. MgButtonSet( mb, x, y, h, v, num )
  8. MgButton    *mb;
  9. {
  10.     MgButton    *p;
  11.     if( p= (MgButton*)malloc( sizeof(MgButton) ) ){
  12.         ClipSet( (ClipClass*)p, x, y, h, v );
  13.         p->type= PushButton;
  14.         p->ret= num;
  15.         p->next= mb->next;
  16.         mb->next= p;
  17.         return    TRUE;
  18.     }
  19.     return    FALSE;
  20. }
  21.  
  22.