Home > Archive > Smalltalk > April 2004 > Re: [VW 7] ExposeEvent & ResizeEvent
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [VW 7] ExposeEvent & ResizeEvent
|
|
| Michel Tilman 2004-04-20, 5:42 pm |
|
"Peter Goessaert" <goes*no*spam*@advalvas.be> wrote in message
news:4084e8f7$0$10933$ba620e4c@news.skynet.be...
> Hi,
>
> ExposeEvent inherits the key from ResizeEvent.
> If I expose a window then it is sent an ExposeEvent with key #resize. Why?
> Implementing ExposeEvent>>key ^#expose does not cause any oddities at
> first sight.
Have you looked at ScheduledWindow>>exposeEvent: anExposeEvent ?
exposeEvent: anExposeEvent
"Do repairing when certain part of the window
is exposed"
self triggerEvent: #expose.
self sensor addDamage: anExposeEvent rectangle.
self reportWindowEvent: anExposeEvent key with: anExposeEvent rectangle.
^nil
michel
| |
| Peter Goessaert 2004-04-21, 5:50 am |
| Michel Tilman wrote:
> "Peter Goessaert" <goes*no*spam*@advalvas.be> wrote in message
> news:4084e8f7$0$10933$ba620e4c@news.skynet.be...
>
>
>
>
> Have you looked at ScheduledWindow>>exposeEvent: anExposeEvent ?
>
> exposeEvent: anExposeEvent
> "Do repairing when certain part of the window
> is exposed"
>
> self triggerEvent: #expose.
> self sensor addDamage: anExposeEvent rectangle.
> self reportWindowEvent: anExposeEvent key with: anExposeEvent rectangle.
> ^nil
>
>
> michel
>
>
Hi Michel,
Yes, I looked into that method, and that is what makes it so strange:
an #expose event is triggered, but the key of anExposeEvent key is #resize.
I tell my application model to be interested in #resize events, but it
also gets these when the window is exposed.
When I tell my application model to be interested in #expose events, it
also only gets #resize events.
I need it to be possible to distinguish those 2 event types.
Peter
| |
| Sascha Doerdelmann 2004-04-22, 5:53 am |
| Peter Goessaert <goes*no*spam*@advalvas.be> wrote:
> I need it to be possible to distinguish those 2 event types.
Do both events exist across different operating systems?
Cheers
Sascha
|
|
|
|
|