home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
CSAPE32.ARJ
/
EXAMPLES
/
NEWSCREE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-09
|
1KB
|
67 lines
/*
newscree.c
generated by Look & Feel version 3.2 from sample.lnf
02/25/91
*/
#include <stdio.h>
#include "cscape.h"
#include "ostdlib.h"
#include "teddecl.h"
#include "msys.h"
#include "sled.h"
static char x_text_value[81];
static int x_integer_var;
int newscreen(char *t,int *i);
int main()
{
disp_Init(def_ModeText, FNULL);
hard_InitMouse();
sedwin_ClassInit();
newscreen(x_text_value, &x_integer_var);
system("map");
disp_Close();
exit(0);
return(0);
}
int newscreen(text_value, integer_var)
char *text_value;
int *integer_var;
{
menu_type menu;
sed_type sed;
int ret;
menu = menu_Open();
menu_Printf(menu, "\n First field\n Second field");
menu_Printf(menu, "@p[1,14]@fd[@[12,#] ]",
text_value, &xstring_funcs, "Enter text value");
menu_Printf(menu, "@p[2,15]@fd[#####]",
integer_var, &int_funcs, "Enter integer value");
menu_Flush(menu);
sed = sed_Open(menu);
sed_SetColors(sed, 0x07, 0x07, 0x70);
sed_SetBorder(sed, bd_prompt);
sed_SetBorderTitle(sed, " My first screen ");
sed_SetPosition(sed, 2, 4);
sed_SetHeight(sed, 4);
sed_SetWidth(sed, 31);
sed_SetMouse(sed, sedmou_Track);
sed_Repaint(sed);
ret = sed_Go(sed);
sed_Close(sed);
return(ret);
}