Re: RichEdit - Paint Event
- Posted by "Alex Chamberlain" <alex at ear26.freeserve.co.uk> Dec 18, 2004
- 543 views
I was trying to do something with text typed or inserted. These both call paint events. Alx ----- Original Message ----- From: "Brian Broker" <guest at RapidEuphoria.com> To: <EUforum at topica.com> Sent: Friday, December 17, 2004 6:21 PM Subject: Re: RichEdit - Paint Event > > > posted by: Brian Broker <bkb at cnw.com> > > 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 > > > >