Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > Tools

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2001, 01:58 PM
larshgf larshgf is offline
Senior Member
 
Join Date: Jan 2001
Posts: 236
Default How to make a repeat function in a toolbutton?

Does anybody know how to make a repeat function in a toolbutton?
Reply With Quote
  #2  
Old 01-04-2001, 05:51 PM
Goober Goober is offline
Junior Member
 
Join Date: Jan 2001
Posts: 17
Default RE: How to make a repeat function in a toolbutton?

I dont understand the question.
What is a repeat function and what do you want the toolbar to do to it?
I'll try my best to answer when you reply.

Goober
Reply With Quote
  #3  
Old 01-04-2001, 09:42 PM
larshgf larshgf is offline
Senior Member
 
Join Date: Jan 2001
Posts: 236
Default RE: RE: How to make a repeat function in a toolbutton?

With a TTimer it is possible to make a buttom repeat when you hold down the left mouse button over it.
I've tried to do the same thing with a toolbutton, but have not succeeded.
Reply With Quote
  #4  
Old 01-05-2001, 12:09 AM
martinoss martinoss is offline
Member
 
Join Date: Jan 2001
Posts: 91
Default RE: RE: RE: How to make a repeat function in a toolbutton?

uhm...i don't know too, what you want to do...but wile pressing you mean?

make a repeat function on the onmousedown-event like this

repeat
// code
until up = true;
up := false;

onmouseup-event you can switch a public boolean variable (ex. up : boolean to true

hope that helps

martin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.