Home End User

Choose to include Data tab or not

edited September 2002 in End User
I know including the Data tab is just uses the daIDE, but what if I'm not
sure if I want to show the Data Tab or not? Can I like set something to hide
it if I do not wish to do so??

TIA

Comments

  • edited September 2002
    When you add daIDE to your uses clause, it simply calls this in the
    initialization section:

    ppResourceManager.AddResFileName('rbDADE');

    ppRegisterDesignModule(TdaDataManager, 'TppDesignerWindow');
    ppRegisterForm(TppCustomDataSettingsDialog, TdaDataSettingsDialog);

    daRegisterWizard(TdaQueryWizard);
    daRegisterWizard(TdaQueryDesigner);

    Yes, you can call the routines in the finalization section of daIDE to
    disable it.

    ppResourceManager.RemoveResFileName('rbDADE');

    ppUnRegisterDesignModule(TdaDataManager, 'TppDesignerWindow');
    ppUnRegisterForm(TppCustomDataSettingsDialog);

    daUnRegisterWizard(TdaQueryWizard);
    daUnRegisterWizard(TdaQueryDesigner);

    Call the routines from the initialization section of daIDE to add DADE back
    in to your environment at runtime.

    Make sure you do all of this before you launch the report designer, as it
    uses the registered design modules and creates them.

    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Thanks for the tips. I've managed to implement it but I should have known
    this earlier. It looked so clear and easy. :)

This discussion has been closed.