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