Sleep(number of milliseconds to wait)
suspends the execution of your program.
Or you use a TimerComponent and with your mousedownevent you enable the timer (Timer->Enabled=true)
In your TimerEvent (Timer->OnTimer)you first set the Timer->Enabled to false (otherwise you keep on triggering your event) and then you put the code you want to execute after 1 second.
Personally I would prefer the second solution, in a windows environment I find it a bit tricky to really suspend the execution of a program,but it works.
Wim Vanherp
Wim.Vanherp@myself.com