📄 wizards_3.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>怎样编写DELPHI向导(三)</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p align="center"><big><big><big>怎样编写DELPHI向导(三)</big></big></big></p>
<p>发信人: strayli (stray), 信区: Delphi <br>
标 题: How to write Delphi wizard(3) <br>
发信站: BBS 水木清华站 (Thu Nov 5 22:02:23 1998) <b><font
color="#00FF00">WWW-POST</font></b> <br>
<br>
returns True if the named file is currently open.
<br>
GetNewModuleName <br>
Automatically generates a valid Filename and Unit identifier. Uses the same <br>
mechanism as used by the IDE. <br>
Component library interface <br>
<br>
GetModuleCount <br>
Returns the number of currently installed modules in the component library.
<br>
GetModuleName <br>
Returns then name of the module given its index.
<br>
GetComponentCount <br>
Returns the number of components installed in a particular module.
<br>
GetComponentName <br>
Returns the name of the component given its module index and index in that <br>
module. <br>
Error handling <br>
<br>
RaiseException <br>
This will cause an Exception to be raised with the IDE with the string passed <br>
to this function. NOTE: This will cause the stack to unwind and control will <br>
NOT return to this point. It is the resposibility of the Library to be sure <br>
it has correctly handled the error condition before calling this procedure.
<br>
TIToolInterface for Delphi 2.0x and 3 <br>
Delphi 2.0x and 3 have an expanded Open Tools API (compared to Delphi 1.x), <br>
which is not only reflected in a few new methods for TIExpert, but especially <br>
for TIToolServices. The following additional methods are new and for the <br>
32-bits versions of Delphi only (methods that are shared with Delphi 1.0 have <br>
been left out for now): <br>
<br>
<br>
TIToolServices = class(TInterface) <br>
public <br>
{ Action interfaces } <br>
function CreateModuleEx(const ModuleName, FormName, AncestorClass,
<br>
FileSystem: string; Source, Form: TIStream;
<br>
CreateFlags: TCreateModuleFlags): TIModuleInterface; virtual;
<br>
stdcall; abstract; <br>
<br>
{ Project/UI information } <br>
function EnumProjectUnits(EnumProc: TProjectEnumProc; Param: Pointer): <br>
Boolean; <br>
virtual; stdcall; abstract; <br>
<br>
{ Virtual File system interfaces } <br>
function RegisterFileSystem(AVirtualFileSystem: TIVirtualFileSystem): <br>
Boolean; <br>
virtual; stdcall; abstract; <br>
function UnRegisterFileSystem(const Ident: string): Boolean; virtual;
<br>
stdcall; abstract; <br>
function GetFileSystem(const Ident: string): TIVirtualFileSystem; virtual;
<br>
stdcall; abstract; <br>
<br>
{ Editor Interfaces } <br>
function GetModuleInterface(const FileName: string): TIModuleInterface;
<br>
virtual; stdcall; abstract; <br>
function GetFormModuleInterface(const FormName: string): TIModuleInterface;
<br>
<br>
virtual; stdcall; abstract; <br>
<br>
{ Menu Interfaces } <br>
function GetMainMenu: TIMainMenuIntf; virtual; stdcall; abstract;
<br>
<br>
{ Notification registration } <br>
function AddNotifier(AddInNotifier: TIAddInNotifier): Boolean;
<br>
virtual; stdcall; abstract; <br>
function RemoveNotifier(AddInNotifier: TIAddInNotifier): Boolean;
<br>
virtual; stdcall; abstract; <br>
<br>
{ Pascal string handling functions } <br>
function NewPascalString(Str: PChar): Pointer; virtual; stdcall; abstract;
<br>
procedure FreePascalString(var Str: Pointer); virtual; stdcall; abstract;
<br>
procedure ReferencePascalString(var Str: Pointer); virtual; stdcall; <br>
abstract; <br>
procedure AssignPascalString(var Dest, Src: Pointer); virtual;
<br>
stdcall; abstract; <br>
<br>
{ Configuration Access } <br>
function GetBaseRegistryKey: string; virtual; stdcall; abstract;
<br>
end; <br>
<br>
The following ToolServices functions are available to the client for 32-bits <br>
versions of Delphi only: <br>
Actions <br>
CreateModuleEx <br>
New extended form of CreateModule. This will return a TIModuleInterface. All <br>
CreateModes from CreateModule are supported with only the following <br>
differences: <br>
cmExisting: Will create an existing module from the given file system.
<br>
AncestorClass: This must specify an existing base class in the project. (use <br>
the cmAddToProject flag to add a module to the project first).
<br>
Informational <br>
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -