Re: Help with VW Event Handling



On Apr 17, 4:53 pm, lopem...@xxxxxxxxxx wrote:
Hi Guys,

The two methods below are killing my app. That is to say, I can't get
Fly-by-help to work with transparent/translucent windows because of
......SNIP.........
send: #dispatchConsumerExit
to: self]]

OK, I was wrong about the lastControlObject being set to a widget from
a different window. I hacked the code to replace the even dispatcher
for my transparent window and got something running. For anybody that
is interested I pasted my class comment below from the hack. It gives
an explanation of what I believe is happening.

I am an event dispatcher that will be sure to generate EnterEvents
into my controllers. My super class tries to be conservative about
generate enter events into his controllers, by remembering the last
active controller (in lastControlObject) and not generating duplicate
event. This work well most of the time. I am sure these are times
under normal circumstances that it does not work. However my
superclass definitely does not work with Fly-By-Help and transparent
windows. When the window client area is transparent there is really
nothing around the widgets. So when the mouse pointer leaves the
widget it changes windows immediately. The new window receives the
never event and the controller in the transparent window receives
nothing more. This leaves the transparent window believing that it's
widget's controller is still active. So upon return of the mouse
pointer to the widget in the transparent window no enter event is
generated. It thinks it has had control the whole time.
If fix this my not bothering to remember the last active controller.
Because of this I am sure to generate an EnterEvent upon return to the
window/widget. Of course I will probably generate extra enter events
because of this but that seems better than the alternative. I may
also generate extra exit events, but I don't think so.
Of course I am just a hack. The real solution is most likely to move
the lastControlObject variable to a common location for all windows.
Maybe the window manager, maybe the class side. It may also be
necessary to clear it under certain circumstances.

.



Relevant Pages

  • Re: HPEN and Rectangle() on Contantly refeshing window object
    ... Indeed I cannot get to the video rendering at this time (although in the ... this idea about creating a transparent window (as opposed to the ... able to draw a rubberbanded rectangle around an area within this screen. ...
    (microsoft.public.vc.mfc)
  • Problem with Shaped Windows Forms
    ... Visual Studio has a doc that explains how to create a shaped window. ... I followed the doc exactly yet the purple color that I choose as my ... background of my form will not show as transparent. ... This property sets the bitmap image to be the background of the form. ...
    (microsoft.public.dotnet.faqs)
  • Re: Transparent GIF Images, Button Colors
    ... I was describing transparency issues. ... window styles that CE imposes. ... these "stuck" styles is that the window underneath ... the transparent part doesn't get repainted in the ...
    (microsoft.public.pocketpc.developer)
  • Re: spaceships, terminology, windows
    ... The join between opaque metal and transparent metal ... thick the hull is. ... thick you're not going to get as high resolution as with a decent video ... It's not practical to have a window for looking at eyeball-visible ...
    (rec.arts.sf.composition)
  • Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS
    ... 00:02.0 VGA compatible controller: Intel Corporation Integrated Graphics Controller ... ACPI: IRQ0 used by override. ... MEM window: disabled. ...
    (Linux-Kernel)

Loading