[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

D3: ComboBoxes and Buttons seem to be transparent now

Posted on 1997-06-13
3
Medium Priority
?
284 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month18 days, 23 hours left to enroll

834 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