Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Custom Query Wizard

edited March 2002 in General
I want to make changes to the size of the Query Wizard panels to
accommodate longer table names. Which would be the best way of
accomplishing this. I tried renaming the form as per the examples I get
a class reference error with the ppRegisterForm when I compiled .

Comments

  • edited March 2002
    Hi Jeremy,

    please show us the code line that raised the compiler error and provide us
    with the exact error message, this will help us to help you.

    regards,
    Chris Ueberall;

  • edited March 2002

    I've included the first part of the renamed unit and the line with the
    error:

    unit myQueryWizard;

    interface

    {$I ppIfDef.pas}

    uses
    Windows, SysUtils, Messages, Classes, Graphics, Controls, Forms, Dialogs,
    StdCtrls, ExtCtrls, Buttons, Menus, ComCtrls,
    ppComm, ppWizard, ppTypes, ppUtils, ppDB, ppMetaBitmap, ppEndUsr,
    ppDsIntf, ppClass, ppDsgnDB,
    daDB, daDataView, daDataWizard, daSQL, daQueryDataView,
    daQueryWizardCriteriaDlg,
    daQueryWizardCalcDlg, daMetaBitmaps, ppIniStorage, ppForms,
    daQueryWizard;

    type


    TdaControlOptionType = (dacoSelectAllButtons, dacoOrderButtons,
    dacoRadioGroup);

    TdaControlOptions = set of TdaControlOptionType;

    {forward declarations}
    TmyQueryWizardDialog = class;
    TdaWizardPage = class;

    { TmyQueryWizard }
    TCustomQueryWizard = class(TdaCustomDataWizard)
    private
    FDataView: TdaQueryDataView;
    FForm: TmyQueryWizardDialog;


    initialization
    ///the line that caused the error
    ppRegisterForm(TdaCustomDataWizard, TCustomQueryWizard);

    [Error] myQueryWizard.pas(3642): Incompatible types: 'TFormClass' and
    'Class reference'

  • edited March 2002
    Hi Jeremy,

    try this one :

    daRegisterWizard(TCustomQueryWizard);

    HTH,
    Chris Ueberall;

  • edited March 2002
    Hi Chris,
    Thanks for your promt response - this worked. However now I see two
    Query Wizards in the New Items box. Do I have to make my own ppNewDlg
    and add code to stop the standard Query Wizard from loading or is their
    an easier way to just display my Query Wizard.



  • edited March 2002
    Hi Jeremy,

    Sorry, but I'm not a 'QueryWizard' wizard, I found the solution through
    scanning the source code.
    Try to unregister the existing 'QueryWizard' -> 'daUnRegisterWizard'.

    HTH,
    Chris Ueberall;

This discussion has been closed.