[AccessD] A2K: VB Equivalent

Drew Wutka DWUTKA at marlow.com
Thu Mar 27 08:55:36 CST 2003


Darren, the MiniCalendar puts an icon in the system tray....click the
Computer/Moon icon when you are in cycle mode.

Drew

-----Original Message-----
From: Darren DICK
To: stuart at lexacorp.com.pg; accessd at databaseadvisors.com
Sent: 3/27/03 5:37 AM
Subject: RE: [AccessD] A2K: VB Equivalent

Hello all
I'll explain what I am up to
I found some code to put an icon in the systray written in VB
Nothing too exciting about that, there are heaps of ways to do this.
The code I found looked more promising than other versions and it
was all code driven, no OCX's etc.

It adds an icon to the systray, then calculates its position in
the systray using some code in the originating form's, Form_MouseMove
property.
I have discovered this is fine in VB but only translates to the detail
portion
of an Access form(With or without form Headers/footers).

The VB code uses the constants...
        WM_LBUTTONDOWN
        WM_LBUTTONUP
        WM_LBUTTONDBLCLK
in a case statement and once trapped you can run your code.
I can't see any Access equivalent (Hence the post)
Unfortunately I'm not good enough to trap the normal KeyCodes for
Left Button, Right Button and double click anywhere other than a
Procedure
that exposes the KeyCode stuff.
eg something like Private sub Form_KeyDown(KeyCode As Integer, Shift As
Integer)

I am sure there is a better way to do it and it has probably been done
on
this list.
I just wanted to 'play' with it, without asking for a complete app that
does
it.
But I've had enough, I think I'll use an OCX I saw and 'play' with that
instead.

Many thanks to all who responded.

Darren




-----Original Message-----
From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg]
Sent: Thursday, 27 March 2003 6:27 PM
To: Darren DICK; accessd at databaseadvisors.com
Subject: RE: [AccessD] A2K: VB Equivalent


> Thanks heaps Drew and Charlotte
> That answers my q's
>
> Now I have another Q :-)
>
> Is there an access version of the following from VB
>        Case WM_LBUTTONDOWN
>        Case WM_LBUTTONUP
>        Case WM_LBUTTONDBLCLK
>
> I just want to trap mouse clicks
> I can do this at a form level with the Key_Down proprty
> But I want to do all this in the form Details and there
> is no Key_Down property for the detail section of a
>

Both the form and its Header, footer and  Detail Section have  separarte
MouseDown,
MouseUp , DoubleClick functions. Won't they do it?

Why are you talking about Key_Down if you just want to trap mouse
clicks?

When you press a key, the current control receives the event (and the
Form
first if you
have Preview on).  Do you need to handle the detail separately to the
header/ footer?






--
Lexacorp Ltd
http://www.lexacorp.com.pg
Information Technology Consultancy, Software Development,System Support.


_______________________________________________
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