Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!bcm!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: Help: How can I force widget redraw without returning to XtMainLoop Message-ID: <3011@gazette.bcm.tmc.edu> Date: 3 Dec 90 16:13:36 GMT References: Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Distribution: comp Organization: Baylor College of Medicine, Houston, Tx Lines: 31 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu In article , umerin@mse.kyutech.ac.jp (Masanobu UMEDA) writes: |> I want a label widget to redraw its string value without returning to |> XtMainLoop. How can I do it? |> |> Any help would be appreciated. |> |> Masanobu UMEDA |> umerin@mse.kyutech.ac.jp |> -- |> Masanobu UMEDA |> umerin@mse.kyutech.ac.jp #include Normal Xt includes #include #include ExposeEvent event ; event->x = 0 ; event->y = 0 ; event->width = label->core.width ; event->height = label->core.height ; label->core.widget_class->core_class.expose(label,&event) ; XFlush(XtDisplay(label)) ; I have never tried this, but It should work. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bcm.tmc.edu (713) 798-3776