home *** CD-ROM | disk | FTP | other *** search
- @include \mh\wind.mh
-
- #
- # Demo of WNUMERIC 1d array input window
- #
-
- int outwd
- int wd
- MAXSIZE = 5
- # 1d array we have window on
- uchar x[MAXSIZE] = {
- C,D,E,F,G
- }
- uchar xstring[20]
- uchar twod[3][10]
-
- riff openWindows()
- # void mosWindow(WVCO,0,0)
- # void mosWindow(WRCC,10,0)
- void outputWindow(WDEBUG,20,0,23,25,"printf") # halfway
-
- # NUMERIC window - set values in 1 dim uchar array,
- # 1 to N elements.
- # upX,upY
- # lowX,lowY
- # title string
- # nolabels = 1 must be 1
- # fieldsize = 5
- # nofields = 3
- # pointer to uchar array of size 1-n
- # should not wrap off screen!
- # size of array >= nofields
- wd = inputWindow(WNUMERIC, 11, 20, 13, 60, "x array", 11, 5, 5, &x)
- void windowLabel(wd, "hello there", 0)
- void windowControl(wd, ALLNOTEFIELDS, 0, 0)
-
- end
-
- vco testit()
- int i
- void openWindows()
- for(;;)
- rest w
- void printf("%n %n %n %n %n",x[0],x[1],x[2],x[3],x[4])
- end
- end
-
-