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

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