dbainbri@ics.uci.edu (David Bainbridge) (06/05/90)
I am currently writting a widget using Motif. My problem is that every time the widget's Set Values routine gets called, and I return a True value from the routine the eintire widget is erased and then redrawn. I checked my redraw routine and the widget is not being erase in this rouinte, and I can't figure out who is doing the erasing. does anyone have any sugestions? -thanks david dbainbri@ics.uci.edu
ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) (06/06/90)
> ... I can't figure out who is doing the erasing.
The XtSetValues routine calls XClearArea on the widget. It's kind of a
simplistic way to generate a "safe" expose on the widget.
-----------------------------------------------------------------------
Benjamin Ellsworth | ben@cv.hp.com | INTERNET
Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP
1000 N.E. Circle | (USA) (503) 750-4980 | FAX
Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE
-----------------------------------------------------------------------
All relevant disclaimers apply.
-----------------------------------------------------------------------
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (06/06/90)
> > ... I can't figure out who is doing the erasing. > The XtSetValues routine calls XClearArea on the widget. It's kind of a > simplistic way to generate a "safe" expose on the widget. Slight clarification: If a widget's SetValues method (or any of its ancestors SetValues methods since this is a chained class method) returns TRUE the intrinsics will clear the widget's window, and generate an exposure event for that window. I will refer you to the Intrinsics specification, section 9.7.2.1 paragraph 10, for further details. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213