Re: RichEdit - Paint Event

new topic     » goto parent     » topic index » view thread      » older message » newer message

Problem program:
--  code generated by Win32Lib IDE v0.18.22


include Win32Lib.ew
without warning

----------------------------------------------------------------------------
----
--  Window Window1
global constant Window1 = createEx( Window, "Window1", 0, Default, Default,
400, 300, 0, 0 )
global constant StatusBar3 = createEx( StatusBar, "", Window1, 0, 0, 0, 0,
0, 0 )
global constant RichEdit2 = createEx( RichEdit, "", Window1, 5, 5, 385, 235,
w32or_all({ES_NOHIDESEL}), 0 )
---------------------------------------------------------
----------------------------------------------------------------------------
----
integer paintCount
paintCount = 0
----------------------------------------------------------------------------
----
procedure RichEdit2_onPaint (integer self, integer event, sequence
params)--params is ( int x1, int y1, int x2, int y2 )
paintCount += 1
setText(StatusBar3, sprintf("Paint Count: %d", paintCount))
end procedure
setHandler( RichEdit2, w32HPaint, routine_id("RichEdit2_onPaint"))


WinMain( Window1,Normal )


>
>
> posted by: Brian Broker <bkb at cnw.com>
>
> Alex Chamberlain wrote:
> >
> > This is a multi-part message in MIME format.
>
> Please disable MIME and HTML when sending to the list.  Use plain text
only.
>
> >
> > Is anyone else having a problem with RichEdits turning grey and only
printing |||||||||||||||
> > when you type after calling a paint event?
> >
> > Anybody have an answer to the problem?
> >
> > (Running on XP)
> >
> > Alx
>
> Do you have an example that exhibits this behavior?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu