Hello,
Can any one give me some suggession whether it is possible to blink a label caption without using timer. If yes, I would appreciate for any suggession.
One possible way (although I do not know how well it would work) would be to use a couple of loops and apllication.processmessage:
Code:
for loop1 := 1 to NO_OF_BLINKS do
begin
for loop2 := 1 to DELAY do
begin
Application.ProcessMessages;
end;
label1.visible:= not(label1.visible);
end
[code]
X-)
Billy H
bhogar@acxiom.co.uk
Making a label with a built in timer could be bad if you're using Win95 or Win98. You can only have so many timers at a time in those OS's, and I can see you accidentally exceeding your limit with blinking labels quickly.
Perhaps you could make a TTimer descendant that had as a property a list of label controls that you want to blink. Then one timer could manage multiple blinking labels.
Just a thought. Windows doesn't really handle blinking that well. DOS kind of had it built in to the color scheme. TealWren
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.