Download Now
Forums

    Reference Codebot.Frame.ConvertDialog.pas

    Part of the Codebot Frame Design package

    The Codebot.Frame.ConvertDialog unit gives you the dialog that asks for the details of the control a form or frame is converted into. You choose the class name of the new control, the name of its unit, and the page of the component palette it is added to. The unit name is made from the class name for you, so TMyCrazyGrid is placed in MyCrazyGridCtrls, but you can change it.

    You also choose whether the control goes in a new package, whose file you pick with a save dialog and whose name is the name of that file, or in an existing package. The unit is written to the folder of the package, in a file named after the unit in lowercase, such as mycrazygridctrls.pas. If that unit already exists, because you are converting a changed form again, the dialog asks before replacing it. Finally, you choose whether the package is installed and whether the new unit is opened once the control is created.

    ShowConvertDialog shows the dialog and returns your choices in a TConvertOptions record.

    Items 42 items

    NameKindLine
    ShowConvertDialogfunction99
    TConvertDialogclass49
    CancelButtonfield68
    ClassNameEditfield52
    ClassNameLabelfield51
    ConvertButtonfield67
    ExistingPackageRadiofield62
    InstallCheckfield65
    NewPackageRadiofield58
    OpenCheckfield66
    PackageButtonfield64
    PackageCombofield63
    PackageDialogfield70
    PackageFileButtonfield61
    PackageFileEditfield60
    PackageFileLabelfield59
    PackageGroupfield57
    PackageSaveDialogfield69
    PageCombofield56
    PageLabelfield55
    SourceLabelfield50
    UnitNameEditfield54
    UnitNameLabelfield53
    ClassNameEditChangeprocedure71
    Destroydestructor92
    FormCloseQueryprocedure76
    GetOptionsprocedure94
    Initprocedure93
    PackageButtonClickprocedure75
    PackageFileButtonClickprocedure74
    PackageRadioChangeprocedure73
    UnitNameEditChangeprocedure72
    TConvertOptionsrecord25
    ControlClassfield27
    InstallPackagefield42
    NewPackagefield35
    OpenUnitfield44
    PackageFilefield40
    PackageNamefield37
    PalettePagefield33
    UnitFilefield31
    UnitNamefield29