Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

paDialog and displaying properties...

19 views
Skip to first unread message

David HAROUCHE

unread,
Jun 6, 2008, 11:16:42 PM6/6/08
to
How could I have the published properties of a TPersistent displayed inside
the Inspector, meanwhile I set paDialog as an attribute of its property
editor, so I can open a
modal DialogBox, via Edit ?

DH


Marc Rohloff [TeamB]

unread,
Jun 7, 2008, 8:01:59 AM6/7/08
to
On Sat, 7 Jun 2008 07:58:01 -0400, Marc Rohloff [TeamB] wrote:

> So you want something like a TFont property? I believe the source for
> that comes with Delphi.

hat would be TFontProperty in the VCLEditors.pas file.

--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com

Marc Rohloff [TeamB]

unread,
Jun 7, 2008, 7:58:01 AM6/7/08
to

So you want something like a TFont property? I believe the source for
that comes with Delphi.

--

David HAROUCHE

unread,
Jun 7, 2008, 11:56:52 AM6/7/08
to
> > So you want something like a TFont property?
Yes

>> I believe the source for that comes with Delphi.

I don't have the sources...

Is it possible to obtain them for free...?

>> hat would be TFontProperty in the VCLEditors.pas file.

I found by Google that there is a TClassProperty...and that fits to my
requirements...

DH


David HAROUCHE

unread,
Jun 7, 2008, 12:36:28 PM6/7/08
to
MyPackage.dpk

TForm1 is declared in Unit1.pas
TForm2 = class(TForm1) in Unit2.pas
TMyEditor = class(TClassProperty) in Unit3.pas with [paDialog,
paSubProperties] set, and Edit overriden...

procedure TMyEditor.Edit;

begin
with TForm2.Create(nil)
do begin
ShowModal;

Free;
end;
end;

[Error] D3Maths.pas(2221): Undeclared identifier: 'ShowModal'

???

DH


David HAROUCHE

unread,
Jun 7, 2008, 1:05:20 PM6/7/08
to
No matter... I found...

I used a base class named TWorkArea, already defined in ComCtrls.Pas...

DH


Chris Morgan

unread,
Jun 7, 2008, 3:01:40 PM6/7/08
to
>>> I believe the source for that comes with Delphi.
> I don't have the sources...
>
> Is it possible to obtain them for free...?
>

Ahem... I rather think that is the point of buying
a more expensive version of Delphi...!
ie, anything other than the Personal/Explorer version.

cheers,

Chris

David HAROUCHE

unread,
Jun 7, 2008, 4:10:20 PM6/7/08
to
Regards...

DH


0 new messages