Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with buttons, animations and Labels 2

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have three questions:
1.How do i change the color of a button?
2.How do i set a animation to act like a button.I want to place an animation but when the user clicks on it i want to load another form.
3.Lastly the most difficult one.I want to create a form with a picture on it, and a label on this picture.I want to show the form, but i want the label to apear character for character.I have written code that adds a character at a time, but the problem is, the computer waits until the total label has its value and then it shows the complete value of the label and not character for character.And another problem, while this is in operation the user is not allowed to do anything else, but wait until this process is finished.

Mail me at 11658479@puknet.puk.ac.za please

 
Answers to each question:

1.) Button1.Font.Color := clRed;
2.) Animation1.OnClick
3.) Each time you update the label with a character in the loop that updates the character perform the following:

Label1.Repaint;
Application.ProcessMessages;

If you do not add an Application.ProcessMessages at the end of each loop then windows does not get a chance to process the repaint event until the loop is done.

Hope this helps.

Brett Parkhurst [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top