Re: Minor Redraw Bug

From: Michael Peuser h <mpeuser_at_t-online.de>
Date: Fri, 14 Feb 2003 20:19:49 +0100
To: <prima_at_prima.eu.org>

Hi Dmitry,

I could reproduce it with a modified Perl example buttons.pl
Line 130: $w-> insert( "Radio" , origin => [ 50,140], backColor=>cl::Red);

I set a breakpoint on on_leave in buttons.pm; but that is not reached at a
mouse leave situation, but only when a click is done on a button.

In fact there is no on_mouseleave event routine for Radio at all! It it only provided
for Buttons
Moduifications did't help however, because of that "focus" attribut!!

Even when the repaint would occur, that would be slightly to late.
I think the basic flaw lies in not updating Radio->focus correctly.....

Kindly Mike

----- Original Message -----
From: "Dmitry Karasik" <dmitry_at_karasik.eu.org>
To: <prima_at_prima.eu.org>
Sent: Friday, February 14, 2003 10:41 AM
Subject: Re: Minor Redraw Bug

Hi Michael!

On 13 Feb 03 at 19:09, "Michael" (Michael Peuser h) wrote:

 Michael> When pressing a - lets say - radio button hilite colors will be
 Michael> used for display. After release this does not change, probably
 Michael> because the atribute 'focus' is not updated correctly. After the
 Michael> window is repainted colors are o.k. again; however it does not
 Michael> help to try to repaint from onClick... So if you use colors or
 Michael> backColors you have to force a repaint somehow...

I wasn't able to reproduce your results, - can you post the whole code
and describe step by step, how does it work for you, and how do you think
it should?

Because as for now, I can only think that onEnter and onLeave events
escaped you, because Buttons are repainted automatically on these events.

-- 
Sincerely,
Dmitry
--- www.karasik.eu.org ---
Life ain't fair, but the root password helps.
                      - BOFH
Received on Fri 14 Feb 2003 - 20:19:08 CET

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET