Subject RE: [IBO] Re: Suggestion from a lazy guy !
Author Claudio Valderrama C.
> -----Original Message-----
> From: sylvain.gherold@... [mailto:sylvain.gherold@...]
> Sent: Viernes 26 de Enero de 2001 7:03
>
> A good idea would be to run the SQLEditor from the Popup menu of the
> TIBOQuery and TIB_Query.
> Do you think it's possible ?
> Sylvain.

In TIB_Query, right click it and select Edit, then the Query Editor opens
as it you had double clicked the component.

In TIBOQuery, the problem is knowing the class of the TDataset editor to
override its methods. If you look carefully, TBDE descendants add Explore
under Fields Editor, whereas TIBO datasets only show a context menu item for
Fields Editor. So, TBDE... class has its own component editor that added the
Explore entry. But since inside dcldb30.dpl I see tdbdataseteditor and I
can't see any external declaration for it. Hence, inheritance is not the
solution, but aggregation: when our editor is created, it can call
GetComponentEditor to instantiate the desired editor and forward to it all
calls that are less than such predefined editor's getVerbCount.

C.