Solved

D3: ComboBoxes and Buttons seem to be transparent now

Posted on 1997-06-13
3
265 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now