Prevent a unit to be automatically added to the Uses clause?

1.3k views Asked by At

I am using TJvTransparentForm (from Project JEDI) on one of my forms. I am also using AlphaControls for my entire project. The problem is, TJvTransparentForm does not work well with the unit "acPNG" from AlphaControls. I need to use the regular PNG class (?).

I tried using an UnregisterClass routine (or something, dont remember what it was), and that didn't do it.

I also tried removing AlphaControls from my project, add the TImage, reenable AC, but it still generates the acPNG in the Uses clause.

What can I do? Thanks! - Jeff

2

There are 2 answers

5
da-soft On BEST ANSWER
  1. If you mean - to exclude a unit, automatically included into "uses" at design time, when a component was droped on a form. Then the only way - create this component at run time.
  2. If the unit was indirectly used by some linked library, then you cannot to exclude this unit. Or ... do not use the library.
1
APZ28 On

Another option is moved the desired unit after the other

Cheers