home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progc
/
teglc.arj
/
SAMC0204.C
< prev
next >
Wrap
Text File
|
1990-05-14
|
1KB
|
57 lines
/* samc0204.c */
#include <graphics.h>
#include "teglsys.h"
optionmptr om1, om2;
unsigned infooption(imagestkptr ifs, msclickptr ms)
{
imagestkptr fs;
unsigned x=200,y=120,w=340,h=100;
hidemouse();
quickframe(&fs,&x,&y,&w,&h);
setcolor(BLACK);
frametext(fs,1,2,"TEGL Windows Toolkit II");
frametext(fs,2,2,"Copyright 1990, TEGL Systems Corporation");
frametext(fs,3,2,"All Rights Reserved.");
definebuttonclick(fs,x+300,y+70,imageOK,NULL);
getmousey(fs);
dropstackimage(fs);
showmouse();
return(1);
}
unsigned getmssense(imagestkptr ifs, msclickptr ms)
{
setmousesense(ifs->x,ifs->y);
return(1);
}
void main()
{
easytegl();
om1 = createoptionmenu(font14);
defineoptions(om1," Info... ", TRUE, infooption);
defineoptions(om1,"--", FALSE, NULL);
defineoptions(om1," Quit ", TRUE, quit);
om2 = createoptionmenu(font14);
defineoptions(om2," Memory ",TRUE,showcoordinates);
defineoptions(om2," Mouse sensitivity ",TRUE,getmssense);
createbarmenu(0,0,getmaxx());
outbaroption(" File ",om1);
outbaroption(" Utility ",om2);
teglsupervisor();
}