Xref: utzoo comp.graphics:1395 comp.sys.att:1826 comp.unix.wizards:5768 comp.windows.misc:82 misc.wanted:1523
Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!pbphb!pbhyf!pjc
From: pjc@pbhyf.UUCP (Paul Condie)
Newsgroups: comp.graphics,comp.sys.att,comp.unix.wizards,comp.windows.misc,misc.wanted
Subject: Re: UNIX PC-GRAPHICS HELP!
Keywords: UNIX-PC graphics unix-pc VDI
Message-ID: <2531@pbhyf.UUCP>
Date: 15 Dec 87 23:39:19 GMT
References: <1154@cooper.cooper.EDU>
Reply-To: pjc@pbhyf.UUCP (Paul Condie)
Organization: Pacific * Bell, San Ramon, CA
Lines: 37

In article <1154@cooper.cooper.EDU> dave@cooper.cooper.EDU (David Lew ) writes:
>
>If there is any body out there that is versed in the UNIX-PC's graphics
>capabilities, notably using VDI or UNIX-PC specific graphics, I gladly
>appreciate your help.
>
>My problem seems to lie in the invocation of track(3t).  I'm not able to read 
>the incoming data relating the positions of the mouse buttons and where the 
>cursor is on the screen.
>
>Code follows:
>------------------------
>
>#include "types.h"
>#include "stdio.h"
>#include "tam.h"
>#include "/usr/include/menu.h"
>#include "/usr/include/track.h"
>#include "/usr/include/sys/window.h"
>#include "/usr/include/kcodes.h"
>
>int cmdop,track(),w,op,*butptr,*whyptr;
>char str[100];
>track_t *trk;
>
>tkitem_t iconitems[]=
>{
>     0,0,1600,2800,0,1,
>     0,2800,1600,2800,0,2,
>     0,0,0,0,0,0
>};

Your rectangle is too large (1600, 2800 etc) in pixels.
You need to find out how big your window is ( i use windy -r, ioctl will also
work) and make sure your rectangles don't exceed it.  Track will not work
if any of your rectangles go outside your window.  For a full screen window
the width is 720 height is 248 or something like that.