Re: Xarea weirdness

Dimitris Keletsekis <[email protected]> Sun, 5 Feb 2012 10:34:50 +0200
Newsgroups gmane.comp.windows.gui4cli
Message-ID <CAHiKg1VUcV9jeK9Vcz4Q0o4WCy=FmJN5XC-gcDBKuvPcqS8ZSQ@mail.gmail.com>
Hi Fer,

I tried the gui and its not behaving as you say on my system (Win 7). The
background remains blue all the time.

The only case when a white rectangle appeared was when I tried changing
various parameters through the windows display interface. I changed "clear
text", etc just to try out to see if something like that was the problem,
and then when I brought the gui to the front the rectangle was visible. As
soon as I moved it off screen and then back again though (to cause it to
redraw) it was blue again and remained like that whatever I did (resizing
etc).

I can't see that there's anything I can do...

xArea is a BS_OWNERDRAW type gadget with the WS_EX_TRANSPARENT exStyle

This means that windows leaves it up to me to draw what I want and since I
have declared it as transparent, I shouldn't have to do anything.

It happens probably because MS changed the visual updating routines to make
it faster and more efficient. There's quite a few little things like that
I've noticed. I don't know yet how to fix it though.

Dimitris



On Sat, Feb 4, 2012 at 6:04 PM, Fer <[email protected]> wrote:

> **
>
>
> Hi Dimitris,
>
> Since win7 the Xarea event is behaving very strangely. After opening the
> gui you only have to wait for a few seconds to see the xarea as a white
> rectangle on a colored background.
>
> ~~~~~~~~~~~~~~~~~~~~~
> G4C XareaWeirdness
>
> xonload
> guiopen #this
>
> xonclose
> guiquit #this
>
> window 100 100 600 400 "Xarea weirdness"
> winattr style resize/move
> winattr background color 100/150/200
> winattr cursor move
>
> xarea 100 100 200 200
> attr cursor standard
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> This only happens on Win7. I can't remember this behaviour on XP.
> I know you are drowning in work, but maybe you could steel a few
> minutes from your boss to look what causes this behaviour.
>
> Regards, fer
>
>  
>