home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8303 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.5 KB

  1. Path: sparky!uunet!vtserf!creatures!csgrad.cs.vt.edu!ramakris
  2. From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: Text Label Widget Flicker
  5. Message-ID: <3975@creatures.cs.vt.edu>
  6. Date: 4 Jan 93 04:34:35 GMT
  7. References: <66040007@misty.boeing.com>
  8. Sender: usenet@creatures.cs.vt.edu
  9. Organization: VPI&SU Computer Science Department, Blacksburg, VA
  10. Lines: 29
  11.  
  12. In article <66040007@misty.boeing.com> pirson@misty.boeing.com (Chris Pirson) writes:
  13.   
  14.   >The problem is an annoying flicker [whenever the label string is
  15.   > updated]. All the text in the widget flickers even if only a single 
  16.   >character has changed.  
  17.    ...
  18.   >Am I going about this monitor application all wrong, is there a simple fix,
  19.   >or am I SOL?
  20.  
  21. I think you're Sol. XtSetValue on a (label) widget causes the expose
  22. method to be invoked which causes the whole window (of the widget) to
  23. be repainted. Hence the flicker.
  24.  
  25. However, if I am wrong in so interpreting, would someone please correct
  26. me ? I have seen this problem in another context: 
  27.  
  28. When enabling/disabling a pushbutton. When one attempts to enable 
  29. (XmNsensitive = True) or disable (XmNsensitive = False) a Pushbutton, 
  30. there is a visible flicker. Hence the enabling/disabling of pushbuttons 
  31. is not as "neat" as it is in Macintosh UI. 
  32.  
  33.   >I'm using monospaced fonts.
  34.  
  35. Fonts have nothing to do with this.
  36.  
  37.   >Chris Pirson                 |B\______o=o=o.        Flight Test Engineering
  38.  
  39. ---
  40. S Ramakrishnan, CS Dept, McBryde Hall, VaTech
  41.