Solved

D3: ComboBoxes and Buttons seem to be transparent now

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

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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