Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2005

Tip: Looking for answers? Try searching our database.

test for continuous mousedown event?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig Buchanan - 21 Jul 2005 18:19 GMT
I have a button that moves a record one position when it is clicked.  i
would like to continue to advance records when the button is held down.
what would be the best way to do this?

thanks,

craig buchanan
Leif - 22 Jul 2005 16:59 GMT
I don't know of a standard Access event that will handle that.  You will
probably need to research a windows call, and associate that with a timer.

Another option is to look into a mouse with a wheel.  That may be used to
skip through records quickly.

> I have a button that moves a record one position when it is clicked.  i
> would like to continue to advance records when the button is held down.
[quoted text clipped - 3 lines]
>
> craig buchanan
Jesper F - 22 Jul 2005 20:34 GMT
> > I have a button that moves a record one position when it is clicked.  i
> > would like to continue to advance records when the button is held down.
> > what would be the best way to do this?

As it's said there's probably nothing standard.

Maybe you could do something like

Button is pressed -> move one record -> set the form timer to 200.
OnTimer-event should also move to next record (it'll then move after every
200 milliseconds).
OnMouseUp should set timer to 0.

This isn't tested, but maybe it'll give you an idea.

Jesper, Denmark
Stephen Lebans - 22 Jul 2005 23:01 GMT
If you create your own custom Nav Buttons and place them on a SubForm
then you can get the autorepeating functionality of the native Access
Nav buttons.
http://www.lebans.com/recnavbuttons.htm
RecordNavigationButtons is an MDB containing code to replace the
standard Navigation Buttons. The custom buttons exactly emulate the
standard navigation bar including the autorepeat property.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

> I have a button that moves a record one position when it is clicked.  i
> would like to continue to advance records when the button is held down.
[quoted text clipped - 3 lines]
>
> craig buchanan
Craig Buchanan - 23 Jul 2005 03:54 GMT
Stephen-

Thanks for the response.  I built something what you've done, but not linked
to a recordset.  let me know and i'll send you the code.

Craig

> If you create your own custom Nav Buttons and place them on a SubForm
> then you can get the autorepeating functionality of the native Access
[quoted text clipped - 20 lines]
>>
>> craig buchanan
Craig Buchanan - 23 Jul 2005 03:53 GMT
thanks for the responses.  turns out there is an Auto Repeat property for
the button.  once enabled, the button acted as expected.

>I have a button that moves a record one position when it is clicked.  i
> would like to continue to advance records when the button is held down.
[quoted text clipped - 3 lines]
>
> craig buchanan
Stephen Lebans - 24 Jul 2005 22:47 GMT
The Autorepeat property has never worked for a CommandButton control
when emulating a MoveNext nav button. You have to place the Nav
CommandButton controls on a Subform to allow the Autorepeat prop to
work.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

> thanks for the responses.  turns out there is an Auto Repeat property for
> the button.  once enabled, the button acted as expected.
[quoted text clipped - 6 lines]
> >
> > craig buchanan
Craig Buchanan - 25 Jul 2005 03:37 GMT
Yep, that is what I did.  I wanted to build a navigation control that I
could use across multiple forms, so I build my "control" as a form.  I then
add add it to each form I want to control.

Incidentally, I have noticed a weird behavior--if  you set focus to a
command button that has the AutoRepeat property set to true, then the button
appears to be recessed.  Have you seen this?

Craig

> The Autorepeat property has never worked for a CommandButton control
> when emulating a MoveNext nav button. You have to place the Nav
[quoted text clipped - 22 lines]
>> >
>> > craig buchanan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.