August 30, 2009   Posted by: Anthony G. Cyphers

RB: Hate that flicker

I’m currently working on a project for a client that requires a cross-platform UI class which is pretty standard. It has working alternatives on Windows, Mac, Linux, and anything else you can think of. They want a certain style within the application, regardless of OS, and I don’t blame them for it.

Now, that’s all fine and dandy…so what’s the problem? Windows + REALBasic = Problem. We all know that flicker on Win32 is a pain in RB. I’ve managed, over the years, to work out a system to negate that issue. Except, of course, in this circumstance.

We have a custom UI class, inside that we have a PagePanel, and inside that we have various different elements. On Mac, everything works beautifully. Once we switch over to Win32, however…ugh. See, that class itself is flicker-free. Until we put the PagePanel on it and start changing values, that is. Anytime that PagePanel’s value changes, our entire custom class has to be redrawn with one of those beautiful little flickers. What a pain.

About the only thing I can think of to get around this problem, would be to manage showing/hiding of child elements in code, and drop the PagePanel. Of course, that’s not the route we want to take with this project.

Anyone else have an idea?

Comments Off posted in: Programming
About the author

Anthony G. Cyphers - The sole proprietor of CyphersTECH Consulting. With a history in development dating back to DOS, he knows his stuff. He began programming in QuickBasic, and moved up through Visual Basic classic until the .NET platform was released. After spending some time working in .NET, he discovered what was then called "REALbasic", and has been developing for that platform ever since. Languages: ActionScript, JavaScript, PHP, VB, REALbasic, VB.NET, PERL