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
| Name | Kind | Line |
|---|---|---|
| ShowConvertDialog | function | 99 |
| TConvertDialog | class | 49 |
| CancelButton | field | 68 |
| ClassNameEdit | field | 52 |
| ClassNameLabel | field | 51 |
| ConvertButton | field | 67 |
| ExistingPackageRadio | field | 62 |
| InstallCheck | field | 65 |
| NewPackageRadio | field | 58 |
| OpenCheck | field | 66 |
| PackageButton | field | 64 |
| PackageCombo | field | 63 |
| PackageDialog | field | 70 |
| PackageFileButton | field | 61 |
| PackageFileEdit | field | 60 |
| PackageFileLabel | field | 59 |
| PackageGroup | field | 57 |
| PackageSaveDialog | field | 69 |
| PageCombo | field | 56 |
| PageLabel | field | 55 |
| SourceLabel | field | 50 |
| UnitNameEdit | field | 54 |
| UnitNameLabel | field | 53 |
| ClassNameEditChange | procedure | 71 |
| Destroy | destructor | 92 |
| FormCloseQuery | procedure | 76 |
| GetOptions | procedure | 94 |
| Init | procedure | 93 |
| PackageButtonClick | procedure | 75 |
| PackageFileButtonClick | procedure | 74 |
| PackageRadioChange | procedure | 73 |
| UnitNameEditChange | procedure | 72 |
| TConvertOptions | record | 25 |
| ControlClass | field | 27 |
| InstallPackage | field | 42 |
| NewPackage | field | 35 |
| OpenUnit | field | 44 |
| PackageFile | field | 40 |
| PackageName | field | 37 |
| PalettePage | field | 33 |
| UnitFile | field | 31 |
| UnitName | field | 29 |