home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8146 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!yale.edu!think.com!paperboy.osf.org!juliet!daniel
  3. From: daniel@juliet.osf.org (Daniel Dardailler)
  4. Subject: Re: Problems resizing DrawingArea
  5. Message-ID: <1992Dec21.150429.10881@osf.org>
  6. Sender: daniel@juliet (Daniel Dardailler)
  7. Organization: Open Software Foundation, Motif Team
  8. References:  <232@pegasus.trident.datasys.swri.edu>
  9. Date: Mon, 21 Dec 1992 15:04:29 GMT
  10. Lines: 20
  11.  
  12.  
  13. |> I have a DrawingArea widget that is a child of another DrawingArea (it's
  14. |> a token that is moved/resized within the application).  Before mapping the
  15. |> child DrawingArea, I call XtSetArg() and XtSetValues() with the new width and 
  16. |> height, but they are not updated.  If I replace these calls with 
  17. |> XResizeWindow(), eveything works fine ... does anyone know why????
  18. |> 
  19. |> I have the same problem setting new x and y values.  I have to call
  20. |> XMoveWindow() explicitly.
  21.  
  22. You should never use those calls on a widget.
  23. Not even XtResizeWidget is allowed for the application.
  24.  
  25. Your problem probably comes from t he parent drawing area geometry management
  26. denying the change on the child because its resize policy is set up this
  27. way.
  28.  
  29. Set resizePolicy=RESIZE_NONE on the parent DA and try XtSetValues again.
  30.  
  31.  
  32.