[AccessD] event identification

Charlotte Foust cfoust at infostatsystems.com
Tue Nov 9 14:30:07 CST 2004


You can definitely get the hWnd of a control that has the focus, John.

Charlotte Foust


-----Original Message-----
From: Colby, John [mailto:JColby at dispec.com] 
Sent: Tuesday, November 09, 2004 11:17 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] event identification


Everything I've read says a control does NOT have a hwind.  Forms might.
Not exactly my area of expertise however.

John W. Colby
The DIS Database Guy


-----Original Message-----
From: Jim Dettman [mailto:jimdettman at earthlink.net]
Sent: Tuesday, November 09, 2004 2:02 PM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] event identification


John,

<<Objects inside of Access are not true windows to
windows, thus the mouse event has to be translated by Access using the
position in the Access window etc. >>

  I don't think that's quite right.  While Access objects are not true
Windows objects, they do get a hwnd when they are active.  I don't think
the mouse clicks are translated based on position.

Jim


-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John
Sent: Tuesday, November 09, 2004 12:46 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] event identification


Susan,

I have never found a single place to go, particularly for sequence.  The
order of events can get really strange, particularly if you throw in
form / subform loads, subform enter / exit etc.  In the Access help
somewhere there is a generic order of events for the form events, and
the control events, but it definitely cannot tell the whole story.

As far as what's going on behind the scenes... you don't even want to
know. Now you get into things like mouse clicks where Windows hands the
mouse event to Access which translates it into a form / control event.
Normally Windows directly hands a mouse event to the window the mouse is
inside of - Window meaning a window object, anything square.  That
object has to decide how to handle the click.  Objects inside of Access
are not true windows to windows, thus the mouse event has to be
translated by Access using the position in the Access window etc.

Similarly key down/up/press... is it handled by the form or by the
control? What if the control should but doesn't? (it ripples up to the
form AFAIK).

Events are a rather deep subject.

I think I have a widget on my site that uses the control classes and
form class to debug.print all the events that fire, in the order fired
as you do anything in the form.  If you want to use it I will need to go
look around and see what it is called.  It was part of the lecture
series I think.

John W. Colby
The DIS Database Guy


-----Original Message-----
From: Susan Harkins [mailto:ssharkins at bellsouth.net]
Sent: Tuesday, November 09, 2004 12:21 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] event identification


BTW, does anyone have a good online resource for an explanation of the
Access event model -- sequence and what's going on behind the scenes? I
just need to check things before I go on record and in my usual
search-challenged way, I can't find anything worth squat. :(

Susan H.

That's what I thought. Thanks guys!

Susan H.


--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


-- 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
-- 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list