home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / ingres / 973 < prev    next >
Encoding:
Text File  |  1992-07-21  |  2.7 KB  |  61 lines

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