<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dave, I can't find TDataModuleDesignerCustomModule anywhere - which
unit is it in? I'm using Delphi 6 which has DesignIntf, not DsgnIntf.<br>
<br>
There is a TCustomModule in DesignEditors.pas, but if I try to use that
then DesignEditors wont compile since it requires Proxies.pas which is
not provided, and there is no dcu provided for DesignEditors either.<br>
I'm not very familiar with the ToolsAPI classes so the help is much
appreciated. BTW, what actually *is* the "designer"? I am assuming
that, for the TForm for example, it is the representation of the TForm
that lets you manipulate components on it and interact with the
ObjectInspector - is that correct?<br>
<br>
Cheers,<br>
Phil.<br>
<br>
David Brennan wrote:
<blockquote cite="mid20050608232757.ECE74AE419@smtp-3.paradise.net.nz"
type="cite">
<pre wrap="">Phil,
Neither do TForm or TDataModule - they aren't meant to. TCustomModule is (to
my knowledge) a helper class used by DsgnIntf to provide the design time
interface used for Forms, DataModules, Frames, etc.
TWebModule is a descendent of TDataModule. You should therefore be able to
use the standard TDataModuleDesignerCustomModule. That is:
RegisterNoIcon([TPhilsWebModule]);
RegisterCustomModule(TPhilsWebModule, TDataModuleDesignerCustomModule);
You could also make your own descendent of TDataModuleDesignerCustomModule
if you wanted but I doubt you actually want to change the designer
behaviour.
That should work fine unless TWebModules have a special designer (I don't
use them myself so I wouldn't know). If they do then you will need to try to
work out which unit contains the designer for TWebModule (which is a matter
of guessing since Delphi doesn't include the source code for most of these
design interface units).
Unless of course I am misunderstanding what you are trying to do?
David.
-----Original Message-----
Unfortunately that didn't work since the TWebModule does not descend
from TCustomModule.
Phil.
David Brennan wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Phil,
....
procedure Register;
begin
RegisterNoIcon([TDbbDataModule]);
RegisterCustomModule(TDbbDataModule, TDataModuleDesignerCustomModule);
RegisterNoIcon([TDbbForm]);
RegisterCustomModule(TDbbForm, TDbbFormCustomModule);
// Note: DON'T call RegisterNoIcon for TDbbFrame. This will disable copy
and
// paste of TDbbFrame descendents and make it impossible to place a new
// TDbbFrame descendent on a form.
RegisterCustomModule(TDbbFrame, TDbbFrameCustomModule);
end;
...
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
Delphi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
_______________________________________________
Delphi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
</pre>
</blockquote>
</body>
</html>