 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Graham Murt Guest
|
Posted: Fri Oct 24, 2003 10:36 am Post subject: Writing an object inspector |
|
|
Hi Everyone,
I have developed a CAD component and i'm in the process of developing an
object inspector for it, possibly similar to the Delphi IDE Object
inspector.
My problem is that i am not sure of the best component to derive from... i
have narrowed it down to a few...
- TCustomGrid
- TCustomListBox
- TListView
I know there are third party object inspectors out there but I will need to
distribute the source code and therefore must write it myself.
The main need for the inspector is "inplace" edits, combo's, spin buttons
ect (depending on the property) which must scroll as the component is
scrolled.
Could anyone shed some light on which would be the best component to inherit
from possibly outlining the advantages and/or disadvantages of these
components.
Thanks for your time,
Graham
|
|
| Back to top |
|
 |
Marcel Bestebroer Guest
|
Posted: Fri Oct 24, 2003 10:41 am Post subject: Re: Writing an object inspector |
|
|
Hello, Graham!
You wrote on Fri, 24 Oct 2003 11:36:08 +0100:
GM> My problem is that i am not sure of the best component to derive
GM> from... i have narrowed it down to a few...
GM> - TCustomListBox
I believe this is the way Borland have done their OI.
GM> I know there are third party object inspectors out there but I will
GM> need to distribute the source code and therefore must write it myself.
There is one in JVCL, which is under MPL so free to distribute. And no,
you don't have to make your own application OpenSource by using it.
GM> The main need for the inspector is "inplace" edits, combo's, spin
GM> buttons ect (depending on the property) which must scroll as the
GM> component is scrolled.
JvInspector can do that.
GM> Could anyone shed some light on which would be the best component to
GM> inherit from possibly outlining the advantages and/or disadvantages of
GM> these components.
I think you're best bet would be TCustomListBox, although I can't really
say why <g> It's a gut feeling. If possible in your case you may be better
of using JvInspector.
--
Marcel Bestebroer (Team JEDI) http://delphi-jedi.org
Project JEDI Help coordinator
JVCL Help team coordinator
To mail me, remove the obvious from my mail address
What's that noise in the background? Oh, it's The Nits with "The train".
|
|
| Back to top |
|
 |
Florent Ouchet Guest
|
Posted: Fri Oct 24, 2003 10:56 am Post subject: Re: Writing an object inspector |
|
|
Hi,
Why don't you use TValueListEditor which inherit from TCustomGrid.
It is the same behavior than the Delphi's object inspector.
Regards,
Florent
"Graham Murt" <graham (AT) NO-SPAMmurtsoft (DOT) co.uk> a écrit dans le message de
news:3f990092 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi Everyone,
I have developed a CAD component and i'm in the process of developing an
object inspector for it, possibly similar to the Delphi IDE Object
inspector.
My problem is that i am not sure of the best component to derive from... i
have narrowed it down to a few...
- TCustomGrid
- TCustomListBox
- TListView
I know there are third party object inspectors out there but I will need
to
distribute the source code and therefore must write it myself.
The main need for the inspector is "inplace" edits, combo's, spin buttons
ect (depending on the property) which must scroll as the component is
scrolled.
Could anyone shed some light on which would be the best component to
inherit
from possibly outlining the advantages and/or disadvantages of these
components.
Thanks for your time,
Graham
|
|
|
| Back to top |
|
 |
William Wong Guest
|
Posted: Mon Oct 27, 2003 1:27 am Post subject: Re: Writing an object inspector |
|
|
I would suggest subclassing from TCustomGrid. I have done it long ago in the
Delphi 2's era Looking at the TDBGrid source could give you some hints.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|