Solved

D3: ComboBoxes and Buttons seem to be transparent now

Posted on 1997-06-13
3
279 Views
Last Modified: 2010-04-04
In D3 the painting of the form seems to be very different from D2.
My application uses a lot of tables and it sometimes takes a little while before all the tables are open and the form is finally painted. While the form is painted D3 leaves the space where my ComboBoxes and Buttons are supposed to appear empty.
This is not very handy since you can see the underlying application in this empty place. Only when the form is finished with painting the ComboBoxes and the Buttons will be properly painted.

Is this a D3 bug or is there a way to get D3 to do it like D2 ???
0
Comment
Question by:MHolz
3 Comments
 
LVL 1

Expert Comment

by:miv
ID: 1337023
The painting in D3 IS different from D2. Not much to do about it...
0
 
LVL 1

Expert Comment

by:Gabor
ID: 1337024
You can use the Update method of controls to paint it directly before you open the tables.
0
 
LVL 2

Accepted Solution

by:
icampbe1 earned 100 total points
ID: 1337025
Don't even show the main form until all is ready.

In the .dpr file, put:  Application.ShowMainForm := FALSE;  before the form create (also, create the main form last, this ensures that all else is created and ready).  Then, you can 'Show' the main form.

Note:  While all of this is happening is a good time to show a splash panel or something..

Cheers.
Ian C.


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…

749 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