home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / x / pex / 549 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  4.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fhg!igd!pfuetz
  2. From: pfuetz@igd.fhg.de (Matthias Pfuetzner)
  3. Newsgroups: comp.windows.x.pex
  4. Subject: Problem with locator requests in PEX-SI. Any hints?
  5. Summary: input beyond x-pixel-value 1000 impossible!
  6. Keywords: PHIGS, PEX-SI, REQUESTS, INPUT, LOCATOR
  7. Message-ID: <1498@igd.fhg.de>
  8. Date: 10 Sep 92 14:54:10 GMT
  9. Sender: news@igd.fhg.de
  10. Reply-To: pfuetz@igd.fhg.de (Matthias Pfuetzner)
  11. Followup-To: poster
  12. Organization: Zentrum fuer Graphische Datenverarbeitung, Darmstadt, FRG
  13. Lines: 95
  14.  
  15. Hi Everybody!
  16.  
  17. I have a problem with the PEX-SI as supplied by X11R5 from MIT (I don't know,
  18. whether this might also be a problem with other PHIGS implementations, I only
  19. used this one). I'm running my application on SUN SparcStation 1+, displaying
  20. it on the X11R5-MIT server for this Sparcstation and on Tektronix XP29P. Both
  21. have the same behavior.
  22.  
  23. The problem is as follows:
  24.  
  25.    appl_display = XOpenDisplay( display_name );
  26.    
  27.    xswa.backing_store     = NotUseful;
  28.    xswa.event_mask        = ExposureMask | StructureNotifyMask;
  29.    xswa.override_redirect = True;
  30.    
  31.    visual.visualid = CopyFromParent;
  32.    
  33.    appl_window =
  34.       XCreateWindow( appl_display,
  35.                      RootWindow( appl_display, DefaultScreen( appl_display ) ),
  36.                      0,
  37.                      0, 
  38.                      DisplayWidth( appl_display,
  39.                                    DefaultScreen( appl_display ) ),
  40.                      DisplayHeight( appl_display,
  41.                                     DefaultScreen( appl_display ) ),
  42.              (unsigned int)0,
  43.                      DefaultDepth( appl_display,
  44.                                    DefaultScreen( appl_display ) ),
  45.                      InputOutput,
  46.                      &visual,
  47.                      CWEventMask | CWBackingStore | CWBorderPixel | 
  48.                      CWOverrideRedirect,
  49.                      &xswa );
  50.    
  51.    XMapWindow( appl_display, appl_window );
  52.    
  53.    XSync( appl_display, False );
  54.    XWindowEvent( appl_display, appl_window, ExposureMask, &exposureEvent );
  55.    
  56.    conn.display     = appl_display;
  57.    conn.drawable_id = appl_window;
  58.    
  59.    xinfo.display               = appl_display;
  60.    xinfo.flags.no_monitor      = 0; /* False -> Monitor is running! */
  61.    xinfo.flags.force_client_SS = 0; /* False! */
  62.    
  63.    popen_xphigs( NULL, 0, PXPHIGS_INFO_FLAGS_NO_MON |
  64.                           PXPHIGS_INFO_FLAGS_CLIENT_SS |
  65.                           PXPHIGS_INFO_DISPLAY, &xinfo );
  66.    
  67.    popen_ws( WS1, (Pconnid)(&conn), phigs_ws_type_x_drawable );
  68.    
  69.    /* some stuff for creating objects deleted */
  70.    
  71.    init_loc_pos.x = .5;
  72.    init_loc_pos.y = .5;
  73.    init_loc_pos.z = .5;
  74.    
  75.    echo_volume.x_min = 300.0;
  76.    echo_volume.x_max = (Pfloat) DisplayWidth( appl_display,
  77.                                               DefaultScreen( appl_display ) );
  78.    
  79.    echo_volume.y_min = 0.0;
  80.    echo_volume.y_max = (Pfloat) DisplayHeight( appl_display,
  81.                                                DefaultScreen( appl_display ) );
  82.    
  83.    echo_volume.z_min = 0.0;
  84.    echo_volume.z_max = 1.0;
  85.    
  86.    pset_loc_mode( 1, 1, POP_REQ, PSWITCH_ECHO );
  87.    
  88.    pinit_loc3( 1 , 1, 0, &init_loc_pos, 1, &echo_volume,
  89.                &record );
  90.    
  91.    preq_loc3( 1, 1, &status, &init_view_ind, &loc_pos );
  92.  
  93. The problem is quite simple: in x-dimension always values between 0 and 1000
  94. are recognized, even if echo_volume.x_min is set to 300! Even inquiry with
  95. pinq_loc_st3 returns that echo_volume is set to the above values and also
  96. realized to these values. Clicking beyond the x-pixel-value of 1000 doesn't do
  97. anything! The resulting values in loc_pos are 0 for x-pixel == 0 and 1 for
  98. x-pixel == 1000 (view_index 0 isn't used, so default values are taken). But no
  99. problems with the y-direction. This can be larger than 1000 pixels!
  100.  
  101. Any hints?
  102.  
  103. Sincerly,
  104.         Matthias
  105. -- 
  106.     Matthias Pfuetzner  |  @work:  +49 6151 155-150  | @home: +49 6151 75717
  107.     6100 Darmstadt, FRG | ZGDV, Wilhelminenstrasse 7 | Lichtenbergstrasse 73
  108.       pfuetzner@igd.fhg.de, pfuetzner@zgdvda.UUCP    | Hans-Ulrich Klose sagte:
  109.     Wir pfeifen nicht nach ihrer Tanze... (09.09.92 in der Haushaltsdebatte)
  110.