[ By Archive-name
| By Author | By Category | By Newsgroup ]
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page
Top Document: Motif FAQ (Part 6 of 9)
Previous Document: 156) TOPIC: DRAWING AREA WIDGET
Next Document: 158) How can I know when a DrawingArea has been resized? It
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
-
Search the FAQ Archives
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page
Top Document: Motif FAQ (Part 6 of 9)
Previous Document: 156) TOPIC: DRAWING AREA WIDGET
Next Document: 158) How can I know when a DrawingArea has been resized? It
157) How can I send an expose event to a Drawing Area widget? (or
any other, come to that). I want to send an expose event so that it will redraw itself. [Last modified: Nov 97] Answer: Use the Xlib call XClearArea(XtDisplay(w), XtWindow(w), 0, 0, 0, 0, True) This clears the widget's window and generates an expose event in doing so. The widgets expose action will then redraw it. This uses a round trip request. An alternative, without the round trip is from orca!mesa!rthomson@uunet.uu.net (Rich Thomson): Widget da; XmDrawingAreaCallbackStruct da_struct; da_struct.reason = XmCR_EXPOSE; da_struct.event = (XEvent *) NULL; da_struct.window = XtWindow(da); XtCallCallbacks(da, XmNexposeCallback, (XtPointer) &da_struct); Thanks to rand@ling.umu.se (Ola Andersson) for a correction to the above.
Top Document: Motif FAQ (Part 6 of 9)
Previous Document: 156) TOPIC: DRAWING AREA WIDGET
Next Document: 158) How can I know when a DrawingArea has been resized? It
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page
[ By Archive-name | By Author | By Category | By Newsgroup ]
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)
Last Update July 06 2008 @ 00:13 AM