William Benson (VBACreations.Com)
vbacreations at gmail.com
Mon Jul 4 01:15:40 CDT 2011
That is not a bad idea at all Charlotte, I think I will do that! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, July 04, 2011 1:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to tell a button's "air space" is no longer being hovered over Darn, I've done this but I don't recall how, since it was back in Access 2.0 or maybe 97. One way to do it would be to put a shape or even a textbox under the button and just slightly larger than the button. Then you use the mousemove of the underlying control to switch the caption back. Charlotte Foust On Sat, Jul 2, 2011 at 12:53 PM, William Benson (VBACreations.Com) < vbacreations at gmail.com> wrote: > I have some code which changes the caption of a button when the user > has the ctrl key pressed, set during the mousemove event for the > button. > > I want however, that when the user leaves the "air space" for the > button, then the caption reverts - regardless whether they still have shift held. > > I know I can use use the mousemove event associated with all > surrounding controls to reset it, but I would like something more > related to the control itself. > > Is there a method of testing that the user has moved the mouse outside > the button's air space? > > I have a feeling I am going to be out of luck... > > > -- > 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