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 >
Wrap
C/C++ Source or Header
|
1992-10-19
|
494b
|
25 lines
/* Copyright 1992 H.Ogasawara (COR.) */
#include <wlib.h>
#include <parts.h>
#include "MgButton.h"
MgButtonSetSheet( mb, x, y, num, shon, shoff )
MgButton *mb;
Sheet *shon, *shoff;
{
MgButtonSht *p;
if( p= (MgButtonSht*)malloc( sizeof(MgButtonSht) ) ){
ClipSet( (ClipClass*)p, x, y, shon->h, shon->v );
p->type= PushButtonSht;
p->ret= num;
p->next= mb->next;
p->shon= shon;
p->shoff= shoff;
mb->next= (MgButton*)p;
return TRUE;
}
return FALSE;
}