On Thu, Jan 24, 2013 at 3:56 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
> It looks like I've found the reason for the strange customdraw behaviour.
> At the end of the primary loop (the loop at the beginning of my sample
> program) I have a call to the TimedMessage public routine that confirms the
> number of listviews that were created. I commented out the call and
> suddenly all colouring is done correctly. I then replaced the call with a
> call to the InfoDialog public routine and the behaviour is still correct.
> So for some reason it looks like the TimedMessage routine
> is interfering with customdraw.
>
Staffan,
When we first started this conversation, my theory was that there was
something in your program that was causing the problem. But, without
seeing all of your program, it is impossible for me to say what was causing
the problem. It is still impossible to say. ;-)
I would say that the TimedMessage is not interfering with customdraw.
Rather something you are doing is interfering with the window message
processing loop.
Depending on where and how you are using the TimedMessage routine, it could
very well be the TimedMessage that is interfering with the message
processing loop. The timed message usually does a sleep. If you sleep in
an event handler where the interpreter is waiting for a reply from the
event handler, that will seriously interfere with the message processing
loop.
> This also explains why always the last listview created had this problem,
> as this is the point in time when the TimedMessage was generated. This
> makes me believe that there may be an explanation and possibly a solution
> to the problem after all. :)
>
It seems as though you already found a solution. Don't use the
TimedMessage. ;-)
--
Mark Miesfeld
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users