Re: RichEdit - Paint Event
- Posted by Brian Broker <bkb at cnw.com> Dec 17, 2004
- 565 views
Don wrote: > > > Problem program: > > -- code generated by Win32Lib IDE v0.18.22 > > <SNIP> > > Work around... use an event handler instead > > }}} <eucode> > procedure RichEdit2_onPaint (atom w, atom a, sequence Params ) > if Params[1] = WM_PAINT then > paintCount += 1 > setText(StatusBar3, sprintf("Paint Count: %d", paintCount)) > end if > end procedure > setHandler( RichEdit2, w32HEvent, routine_id("RichEdit2_onPaint")) > </eucode> {{{ > > Cheers! > > Don Phillips - aka Graebel > National Instruments > mailto: eunexus @ yahoo.com > Don's solution works but it begs the question: What are you trying to achieve? Edit controls don't require a paint handler. Are you really just interested in the number of paint events the control has received? -- Brian