Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Hide 2 combobox in edittoolbar

edited October 2002 in End User
Hi

How is it possible to always hide 'combobox' and 'combobox2' in EditToolBar
even when a dbcomponent is selected.
However The Editbox must be visible when a label... is selected.

Thanks

Comments

  • edited October 2002
    For the data aware controls, you might be able to do this by creating a
    descendents of the data aware components and overriding the constructor.

    There are three component properties which control what is shown in the
    designer:
    property DefaultPropHint: String...
    property DefaultPropName: String...
    property DefaultPropEditType: TppPropEditType...

    You could also override the IsDataAware function of the component to return
    true. See ppPrnabl.pas for the TppPrintable.Create to see where the above
    three properties are set by default.

    There is an exampel of registering a custom component in the
    RBuilder\Demos\RCL directory. You can unregister the default data aware
    components and register yours as replacements using the same icons.

    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.