How to unlock a form when the application has a lot of data sets

In a moderately complex database application in Delphi, it is easy to get dozens of data sets (tables and queries) and related data sources in a form.
All this clutters the screen.
It pagecontrol when your form has a pagecontrol , where each page has its own set of data sources, etc.

If tables and data sources were visual controls, at least they would only be visible in the Table where they are applicable.
I thought about creating some kind of container object that could store many datasets and data sources, but never bypassed it.

I also have cnPack , which adds to the option to hide non-visual components from presentation in the designer. However, this does not help, because it makes their choice difficult.

What solution for unclutter form constructor still has the ability to select data access components?

(What is worth working in Delphi 2007 and XE2)

+4
source share
2 answers

You can create a data module for each logical group of non-visual components. Then, appropriately name the data module so that you can quickly link it to the page to which the components belong.

+14
source

www.gexperts.org has an IDE plugin for delphi that contains the ability to hide / show all non-visual controls.

It is ideal for hiding all datasets, etc., so that you can manipulate your components. Then you can show them again when you need to access them.

To make life even easier, you can customize the toolbar so that you can hide / show them with one click.

+2
source

Source: https://habr.com/ru/post/1385553/


All Articles