home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!wupost!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!mail-to-news-gateway
- From: r mistry <mistry@leicester-poly.ac.uk> (med sys)
- Subject: Ingres Windows4GL - Tolerencing Mouse Clicks
- Message-ID: <29006.9207211007@escher.cms.leicp.ac.uk>
- Sender: root@nrao.edu (Operator)
- Organization: National Radio Astronomy Observatory
- Date: Tue, 21 Jul 1992 14:07:47 GMT
- Lines: 50
-
- I have the following problem when using Ingres-Windows4GL with Ingres v6.3
- on HP 9000/700 Workstations
-
- Outline : I am using an Imagefield in a windows form into which is loaded
- an image from the unix filesystem.
- (The image is not stored in Ingres)
- - The image is in SUN raster format,
- is 256x256 pixels and greyscaled.
-
- I have a script associated with the imagefield which is activated each time
- the mouse is clicked in the image field.
-
- What I want to do now is to read the mouse position when the button was clicked,
- place an 'X' at that point, and redisplay the image.
-
- Problem (1).
- I cannot perform this in straight Ingres because Windows4GL places the
- image in the 'foreground' and any drawn attributes in the background, so
- they cannot be seen.
- ... What I do to try to get around this is to edit the sun raster file
- and physically put an 'X' in and then reload and redisplay the image.
-
- Unfortunately ... I can't read the mouse position accurately enough, and
- convert it to pixels rather than in thousands of an inch or whatever Ingres
- returns in the Curframe.XStart and Curframe.YStart variables.
-
- (2)
- I physically set the size of the imagefield (in the script) to 2560x2560 by
- setting the width and height attributes of the imagefield, but when I read
- back the points I get when clicking in the TopLeft and BottomRight corners of
- the image field I get (22,88) - TopLeft, and (2516,2588) - BottomRight.
- In addition when I check FIELD().Width and Height I get Width = 2560, and
- Height = 2555, wheras I have set them previously to 2560x2560, also I have
- set the Imagefield to resize the image (width and height) to fit the field.
-
- The outcome of these problems is that the 'X' is not placed at the position
- where the mouse was clicked, this is important because subsequently I want to
- be able to click on the 'X' and store information in Ingres spacifically about
- that point on the image.
-
- Can anybody Help ???
-
- -------------------------------------------------------------------------
- Rajesh Mistry Email: mistry@leicp.ac.uk
- Computing and Mathematical Sciences Research Unit,
- De Montfort University,
- The Gateway,
- Leicester, LE1 9BH,
- England.
- -------------------------------------------------------------------------
-