?
Solved

Change color twice without see the change

Posted on 1998-06-30
4
Medium Priority
?
143 Views
Last Modified: 2010-04-04
Hi

I have a form.panel1.color = clsilver.
i want to print the panel and i have to change the color of the panel in clwhite.

 Form.Panel1.color:=clwhite
 Form.print;
 Form.Panel1.color:=clsilver

But i dont want to the person to see the change of color on the screen.
Is there any method or command to not change the color on screen?

Thanks
0
Comment
Question by:sierra20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:michaue
ID: 1356721
I don't know how to do that exactly, but you can by doing a hide on the form, before the print event, (still having your change panel colour inbetween).

Then design a small form with borderstyle none, to display a message to the user, something like "PLEASE WAIT WHILE THE FORM IS PRINTING".

Change the colour of the panel back and close the second form after the print event and then show the first one ...
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1356722
Another way, maybe is this :

Capture the bitmap of the form, do your color manipulations on this one and print the bitmap.

Zif.
0
 
LVL 4

Accepted Solution

by:
BoRiS earned 150 total points
ID: 1356723
sierra20

Use the LockWindowUpdate API call to lock the updateing etc...

LockWindowUpdate(Form1.Handle);

Check the help file out for futher usage etc...

Later
BoRiS
0
 

Author Comment

by:sierra20
ID: 1356724
Thanks Boris, it was exactly what i was looking for.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question