Easiest way is to make a descendant component, use a timer and while the button is pressed, use timer event to generate the required event.
Look at tnavbutton in dbctrls to see how Borland have done it in their navigator. To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Send reply to: [EMAIL PROTECTED] From: "Mark Howard" <[EMAIL PROTECTED]> Date sent: Tue, 14 Oct 2003 10:39:06 +1300 Subject: RE: [DUG]: Using DBNavigator without Datasource Priority: normal > Thanks for the suggestion Stacey, however, I'm reluctant to buy another 3rd party > library just to get a single component. > > Can someone give me an idea of how much of a mission it would be to roll my own > auto-repeat for a TButton - which doesn't appear to have a State ie Clicked or > UnClicked? > > Mark > > On 14 Oct 2003 at 9:11, Stacey Verner wrote: > > > Take a look at Toolbar97. It has auto repeating buttons. > > > > http://www.jrsoftware.org/tb97info.php > > > > Note. Toolbar 2000 does not havbe autorepeating buttons. > > > > Stacey > > > > > -----Original Message----- > > > From: Mark Howard [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, 14 October 2003 9:05 > > > To: Multiple recipients of list delphi > > > Subject: [DUG]: Using DBNavigator without Datasource > > > > > > > > > Hi > > > > > > I need to have left and right arrow buttons that auto-repeat > > > (like a spin edit) . > > > > > > I thought that I could use the DBNavigator but have found > > > that it has to be > > > connected to a datasource and dataset and also that one or > > > other of the buttons will > > > be disabled if at the start or end of a dummy dataset. > > > > > > Is there a way I can use this control without it being DB > > > connected? or Does someone have an example of providing > > > auto-repeat to a button? > > > > > > TIA > > > > > > Mark > > > -------------------------------------------------------------- > > > ------------- > > > New Zealand Delphi Users group - Delphi List - > > > [EMAIL PROTECTED] > > > Website: http://www.delphi.org.nz > > > To UnSub, send email to: [EMAIL PROTECTED] > > > with body of "unsubscribe delphi" > > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > > > > --------------------------------------------------------------------------- > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > > > > --------------------------------------------------------------------------- > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > Regards Rohit ====================================================================== CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH (649) 489-2280 FX (649) 489-2290 email [EMAIL PROTECTED] or [EMAIL PROTECTED] ====================================================================== --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/