home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8826 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.9 KB

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!rdsunx!montnaro
  2. From: montnaro@ausable.crd.ge.com (Skip Montanaro)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Problems moving widgets - Style Guide conformance problems?
  5. Message-ID: <MONTNARO.93Jan25155924@ausable.crd.ge.com>
  6. Date: 25 Jan 93 20:59:24 GMT
  7. Sender: usenet@crd.ge.com (Required for NNTP)
  8. Reply-To: montanaro@ausable.crd.ge.com (Skip Montanaro)
  9. Distribution: comp
  10. Organization: GE Corporate Research & Development, Schenectady, NY
  11. Lines: 35
  12. Nntp-Posting-Host: ausable.crd.ge.com
  13.  
  14.  
  15. We have a graphical editor application that for the purposes of this note
  16. consists of a DrawingArea with one or more nodes represented by a Form
  17. enclosed in a Frame.  There are lots of widgets inside the Form, but at the
  18. top of the Form is a Label and two square PushButtons:
  19.  
  20.     +-Frame-----------------------+
  21.     |+-Form----------------------+|
  22.     ||+-Label-------++-PB-++-PB-+||
  23.     |||         ||    ||    |||
  24.     ||+-------------++----++----+||
  25.         ||+-Form--------------------+||
  26.     |||                     |||
  27.     |||                         |||
  28.     |||                 |||
  29.     ||+-------------------------+||
  30.     |+---------------------------+|
  31.         +-----------------------------+
  32.  
  33. The most common operation performed on these nodes is to move them.  Under
  34. Motif 1.1, we drag the mouse while the middle mouse button is pressed over
  35. the Label to move nodes.  Under Motif 1.2 this no longer works because the
  36. middle mouse button has been usurped for drag-and-drop.
  37.  
  38. What is the politically correct way to interactively move widgets in this
  39. sort of context? We select nodes by clicking in the Label with the left
  40. mouse button, then can choose an operation from a popup menu, but for node
  41. movement this is cumbersome, because we do it so frequently. Can we simply
  42. disable drag-and-drop for the Label widget and still be "conformant"? If so,
  43. how does one disable drag-and-drop on a widget-by-widget basis?
  44.  
  45. Thx,
  46.  
  47. --
  48. Skip (montanaro@crd.ge.com)
  49.