📄 67016
字号:
Xref: cantaloupe.srv.cs.cmu.edu comp.windows.x:67016 comp.windows.x.intrinsics:1150Path: cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!fs7.ece.cmu.edu!europa.eng.gtefsd.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ursa!buzzFrom: buzz@bear.com (Buzz Moschetti)Newsgroups: comp.windows.x,comp.windows.x.intrinsicsSubject: Monthly Question about XCopyArea() and Expose EventsMessage-ID: <BUZZ.93Apr19125438@lion.bear.com>Date: 19 Apr 93 16:54:38 GMTSender: news@bear.comReply-To: buzz@bear.com (Buzz Moschetti)Organization: Bear, Stearns & Co. - FASTLines: 18(2nd posting of the question that just doesn't seem to get answered)Suppose you have an idle app with a realized and mapped Window that containsXlib graphics. A button widget, when pressed, will cause a new itemto be drawn in the Window. This action clearly should not call XCopyArea() (or equiv) directly; instead, it should register the existence of the newitem in a memory structure and let the same expose event handler that handles"regular" expose events (e.g. window manager-driven exposures) take careof rendering the new image. Using an expose event handler is a "proper" wayto do this because at the time the handler is called, the Xlib Window isguaranteed to be mapped.The problem, of course, is that no expose event is generated if the windowis already visible and mapped. What we need to do is somehow "tickle" theWindow so that the expose handler is hit with arguments that will enableit to render *just* the part of the window that contains the new item.What is the best way to tickle a window to produce this behavior?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -