on 2/20/07 10:53 PM, Mark Levinson at [EMAIL PROTECTED] wrote:

> 
> On Feb 20, 2007, at 6:09 AM, Chris Little wrote:
> 
>> on 2/19/07 11:40 PM, Scott Crick (Lists) at
>> [EMAIL PROTECTED]
>> wrote:
>> 
>>> On 2/18/07 9:04 PM, "Chris Little" <[EMAIL PROTECTED]> wrote:
>>> 
>>>> Refresh and Invalidate do the same thing. Refresh calls
>>>> Invalidate and then
>>>> UpdateWindow
> 
> 
> 
>> 
>> I sent an updated sample off-list.
>> 
>> Chris
>> 
> 
> For others who are also following this thread, we would be interested in
> your updated example too...

Sure. http://homepage.mac.com/cslittle/CustomButtonTestNew.zip.

The off-list discussion consisted of:

>>> I changed your sample to deal with transparency correctly. You'll see that I
>>> changed your calls to DrawButton with me.Refresh and removed the ClearRect
>>> from the DrawButton method. I also added a canvas underneath the control to
>>> show that the transparency is working. I only ran the test on Mac.
>> 
>> You know, the changes you made are what I USED to do (using refresh rather
>> than a direct call to the drawing method). However, I remember refresh
>> causing some TERRIBLE bad flicker under Windows, which is why I switched to
>> direct drawing.
>> 
>> However, after looking at your example and running the app under Windows XP,
>> I'm not seeing flicker. I really don't know when that changed in REALbasic.
>> 
>> I'm good now. Thank you for your help!
> 
> You should try it on some different Windows hardware. With XP some video
> drivers implemented double buffering which hides much of the flickering like
> it does on Mac. You can also experiment with suppressing the erases. As long
> as the control on the bottom fully paint when redrawing you don't momentarily
> see the window background color before the other controls draw which is what
> causes the flickering.

Chris


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to