Skip to content

Instantly share code, notes, and snippets.

@tobynet
Created September 16, 2008 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobynet/11016 to your computer and use it in GitHub Desktop.
Save tobynet/11016 to your computer and use it in GitHub Desktop.
Designed Unit for TSpTBXFrame
unit SpTBXFrameDesignUnit;
{
Designed Unit for TSpTBXFrame
}
interface
procedure Register;
implementation
uses Classes, WCtlForm, DesignIntf, ToolsApi, TntForms_Design, SpTBXFrameUnit;
type
TSpTBXFrameWizard = class(TTntNewFormWizard)
protected
function ThisFormClass: TComponentClass; override;
public
function GetComment: AnsiString; override;
end;
TSpTBXFrameCustomModule = class(TWinControlCustomModule)
public
function Nestable: Boolean; override;
end;
procedure Register;
begin
RegisterCustomModule(TSpTBXFrame, TSpTBXFrameCustomModule);
RegisterPackageWizard(TSpTBXFrameWizard.Create);
end;
{ TSpTBXFrameWizard }
function TSpTBXFrameWizard.ThisFormClass: TComponentClass;
begin
Result := TSpTBXFrame;
end;
function TSpTBXFrameWizard.GetComment: AnsiString;
begin
Result := 'Creates a new SpTBXFrame';
end;
{ TSpTBXFrameCustomModule }
function TSpTBXFrameCustomModule.Nestable: Boolean;
begin
Result := True;
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment